@Override public void testIgnored(TestDescription description) { if (!resultMap.containsKey(description)) { resultMap.put(description, new TestEvent(TestEventType.TEST_IGNORED, description)); } }
@Override public void testFinished(TestDescription description) { if (!resultMap.containsKey(description)) { resultMap.put(description, new TestEvent(TestEventType.TEST_FINISHED, description)); } }
@Override public void testStarted(TestDescription description) { TestEvent event = new TestEvent(TEST_STARTED, description); sendEvent(event); }
@Override public void testFinished(TestDescription description) { TestEvent event = new TestEvent(TEST_FINISHED, description); sendEvent(event); }
@Override public void testIgnored(TestDescription description) { TestEvent event = new TestEvent(TEST_IGNORED, description); sendEvent(event); } }
@Override public void testFailure(TestFailure failure) { TestDescription description = failure.getDescription(); if (!resultMap.containsKey(description)) { resultMap.put(description, new TestEvent(TestEventType.TEST_FAILED, description, failure.getException())); } }
@Override public void onTestStart(ITestResult result) { writeEvent(new TestEvent(TestEventType.TEST_STARTED, toDescription(result))); }
@Override public void onTestSkipped(ITestResult result) { writeEvent(new TestEvent(TestEventType.TEST_IGNORED, toDescription(result))); }
@Override public void onTestSuccess(ITestResult result) { writeEvent(new TestEvent(TestEventType.TEST_FINISHED, toDescription(result))); }
@Override public void testFinished(Description description) throws Exception { writeEvent(new TestEvent(TestEventType.TEST_FINISHED, convertDescription(description))); }
@Override public void testIgnored(Description description) throws Exception { writeEvent(new TestEvent(TestEventType.TEST_IGNORED, convertDescription(description))); }
@Override public void testStarted(Description description) throws Exception { writeEvent(new TestEvent(TestEventType.TEST_STARTED, convertDescription(description))); }
@Override public void testAssumptionFailure(TestFailure failure) { TestEvent event = new TestEvent(TEST_ASSUMPTION_FAILED, failure.getDescription(), failure.getException()); sendEvent(event); }
@Override public void testFailure(TestFailure failure) { TestEvent event = new TestEvent(TEST_FAILED, failure.getDescription(), failure.getException()); sendEvent(event); }
@Override public void testFailure(Failure failure) throws Exception { TestDescription description = convertDescription(failure.getDescription()); Throwable exc = WrappedTestContainerException.wrapIfNeeded(failure.getException()); writeEvent(new TestEvent(TestEventType.TEST_FAILED, description, exc)); }