void () { mySMRootTestProxy.setTestsReporterAttached(); mySMRootTestProxy.addChild(mySimpleTest); mySMRootTestProxy.setStarted(); mySimpleTest.setStarted(); mySimpleTest.setFinished(); mySMRootTestProxy.setTerminated(); mySMRootTestProxy.setFinished(); // terminated and finished TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, myRenderer); mySMRootTestProxy.setFinished(); assertEquals(PoolOfTestIcons.TERMINATED_ICON, myRenderer.getIcon()); assertOneElement(myFragContainer.getFragments()); assertEquals("Terminated", myFragContainer.getTextAt(0)); assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0)); }