void () { onTestStarted("some_test"); final String fullName = myEventsProcessor.getFullTestName("some_test"); final SMTestProxy proxy = myEventsProcessor.getProxyByFullTestName(fullName); myEventsProcessor.onTestFinished(new TestFinishedEvent("some_test", 10L)); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); assertEquals(0, myEventsProcessor.getRunningTestsQuantity()); assertNotNull(proxy); assertFalse(proxy.isDefect()); assertFalse(proxy.isInProgress()); //Tree final Object rootTreeNode = myTreeModel.getRoot(); PlatformTestUtil.waitWhileBusy(myResultsViewer.getTreeView()); assertEquals(1, myTreeModel.getChildCount(rootTreeNode)); final SMTestProxy rootProxy = SMTRunnerTestTreeView.getTestProxyFor(rootTreeNode); assertNotNull(rootProxy); assertSameElements(rootProxy.getChildren(), proxy); }