Search in sources :

Example 1 with SeleniumComputer

use of org.opennms.netmgt.junit.runner.SeleniumComputer in project opennms by OpenNMS.

the class GroovyRunnerTest method testCustomJUnitRunnerWithComputer.

@Test
public void testCustomJUnitRunnerWithComputer() throws CompilationFailedException, IOException {
    String filename = "src/test/resources/groovy/GroovyRunnerTest.groovy";
    Computer computer = new SeleniumComputer("http://www.papajohns.co.uk");
    Result result = runJunitTestWithComputer(computer, getGroovyClass(filename));
    assertEquals(0, result.getFailureCount());
}
Also used : SeleniumComputer(org.opennms.netmgt.junit.runner.SeleniumComputer) Computer(org.junit.runner.Computer) SeleniumComputer(org.opennms.netmgt.junit.runner.SeleniumComputer) Result(org.junit.runner.Result) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Computer (org.junit.runner.Computer)1 Result (org.junit.runner.Result)1 SeleniumComputer (org.opennms.netmgt.junit.runner.SeleniumComputer)1