public void testDistributedRunWithTwoLocalhosts() {
System.setProperty(DistributedTest.REMOTE_MACHINE_URLS, "http://localhost:8080, http://localhost:8080");
TestResult result = TestRunner.run(new DistributedTest("testCollectResults"));
assertEquals(1, result.runCount());
assertTrue(result.wasSuccessful());
}
public void testDistributedRunWithInvalidHosts() {
System.setProperty(DistributedTest.REMOTE_MACHINE_URLS, "http://fooXXX:1234, http://barXXX:5678");
TestResult result = TestRunner.run(new DistributedTest("testCollectResults"));