void () { onTestStarted("test"); myEventsProcessor.onTestFailure(new TestFailedEvent("test", "", "", false, null, null)); myEventsProcessor.onTestFinished(new TestFinishedEvent("test", 10L)); myEventsProcessor.onFinishTesting(); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); //Tree final Object rootTreeNode = myTreeModel.getRoot(); assertEquals(1, myTreeModel.getChildCount(rootTreeNode)); final SMTestProxy rootProxy = SMTRunnerTestTreeView.getTestProxyFor(rootTreeNode); assertNotNull(rootProxy); assertFalse(rootProxy.isInProgress()); assertTrue(rootProxy.isDefect()); }