model.addTestResult(failed1);
assertTrue(model.hasChildren());
}
public void testGetNumbers() throws Exception {
ResultModel model = new EclipseJstdBrowserRunResult(null, "browser");
assertEquals(0, model.getNumberOfTests());
assertEquals(0, model.getNumberOfFailures());
assertEquals(0, model.getNumberOfErrors());
model.addTestResult(passing1);
model.addTestResult(failed1);
model.addTestResult(error1);
assertEquals(3, model.getNumberOfTests());
assertEquals(1, model.getNumberOfFailures());
assertEquals(1, model.getNumberOfErrors());
model.addTestResult(passing2);
model.addTestResult(failed2);
model.addTestResult(failed3);
model.addTestResult(error2);
assertEquals(7, model.getNumberOfTests());
assertEquals(3, model.getNumberOfFailures());
assertEquals(2, model.getNumberOfErrors());
}