private void assertFields(TestSuiteResult aResult) { assertEquals("2.5", aResult.getJsUnitVersion()); assertEquals("An ID", aResult.getId()); assertEquals("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)", aResult.getUserAgent()); assertEquals("Dummy Remote Address", aResult.getRemoteAddress()); assertEquals(4.3d, aResult.getTime(), 0.001d); assertEquals(3, aResult.getTestCaseResults().size()); Iterator it = aResult.getTestCaseResults().iterator(); while (it.hasNext()) { TestCaseResult next = (TestCaseResult) it.next(); assertNotNull(next); } }
public void testId() { assertNotNull(result.getId()); result = new TestSuiteResult(null); result.setId("foo"); assertEquals("foo", result.getId()); }