void () { //send tree myEventsProcessor.onSuiteTreeStarted("suite1", null, null, "suite1", "0"); myEventsProcessor.onSuiteTreeStarted("test1", null, null,"test1", "suite1"); myEventsProcessor.onSuiteTreeEnded("test1"); myEventsProcessor.onSuiteTreeEnded("suite1"); myEventsProcessor.onBuildTreeEnded(); //start testing myEventsProcessor.onStartTesting(); myEventsProcessor.onSuiteStarted(new TestSuiteStartedEvent("suite1", null)); myEventsProcessor.onSuiteStarted(new TestSuiteStartedEvent("test1", null)); myEventsProcessor.onTestFailure(new TestFailedEvent("test1", "", "", false, "a", "b")); myResultsViewer.performUpdate(); myEventsProcessor.onTestFinished(new TestFinishedEvent("test1", 10L)); myResultsViewer.performUpdate(); myEventsProcessor.onSuiteFinished(new TestSuiteFinishedEvent("suite1")); myResultsViewer.performUpdate(); myEventsProcessor.onFinishTesting(); myResultsViewer.performUpdate(); List<? extends SMTestProxy> children = myResultsViewer.getTestsRootNode().getChildren(); assertSize(1, children); assertEquals(TestStateInfo.Magnitude.FAILED_INDEX.getValue(), children.get(0).getMagnitude()); }