assertEquals("testThatFails", parser.currentTestCase.getName());
}
@Test
public void shouldAddErrorToTestCase() throws Exception {
parser.currentTestSuite = new TestSuite("host", "PisClientTestCase", new Date());
parser.currentTestCase = new TestCase("PisClientTestCase", "testThatFails");
String line = "/Users/ray/Development/Projects/Java/xcodebuild-hudson-plugin/work/jobs/PBS Streamer/workspace/PisClientTestCase.m:21: error: -[PisClientTestCase testThatFails] : \"((nil) != nil)\" should be true. This always fails";
parser.handleLine(line);
assertEquals(1, parser.currentTestCase.getFailures().size());
assertEquals("/Users/ray/Development/Projects/Java/xcodebuild-hudson-plugin/work/jobs/PBS Streamer/workspace/PisClientTestCase.m:21", parser.currentTestCase.getFailures().get(0).getLocation());