void () { TestConsoleProperties.HIDE_PASSED_TESTS.set(myConsoleProperties, true); myEventsProcessor.onStartTesting(); myEventsProcessor.onSuiteStarted(new TestSuiteStartedEvent("suite", null)); myResultsViewer.performUpdate(); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); myEventsProcessor.onTestStarted(new TestStartedEvent("test_failed", null)); myResultsViewer.performUpdate(); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); myEventsProcessor.onTestFailure(new TestFailedEvent("test_failed", "", "", false, null, null)); myResultsViewer.performUpdate(); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); myEventsProcessor.onTestFinished(new TestFinishedEvent("test_failed", 10L)); myResultsViewer.performUpdate(); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); myEventsProcessor.onTestStarted(new TestStartedEvent("test", null)); myResultsViewer.performUpdate(); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); assertEquals(2, myTreeModel.getChildCount(myTreeModel.getChild(myTreeModel.getRoot(), 0))); myEventsProcessor.onTestFinished(new TestFinishedEvent("test", 10L)); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); assertEquals(2, myTreeModel.getChildCount(myTreeModel.getChild(myTreeModel.getRoot(), 0))); myEventsProcessor.onSuiteFinished(new TestSuiteFinishedEvent("suite")); myEventsProcessor.onFinishTesting(); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); assertEquals(1, myTreeModel.getChildCount(myTreeModel.getChild(myTreeModel.getRoot(), 0))); }