void () { TestConsoleProperties.SELECT_FIRST_DEFECT.set(myProperties, true); mySuite.setStarted(); final SMTestProxy testsSuite = createSuiteProxy("my suite", mySuite); testsSuite.setStarted(); // passed test final SMTestProxy testPassed1 = createTestProxy("testPassed1", testsSuite); testPassed1.setStarted(); //failed test final SMTestProxy testFailed1 = createTestProxy("testFailed1", testsSuite); testFailed1.setStarted(); myUIActionsHandler.onTestNodeAdded(myResultsViewer, testFailed1); assertNull(mySelectedTestProxy); testFailed1.setTestFailed("", "", false); //myUIActionsHandler.onTestFinished(testFailed1); assertNull(mySelectedTestProxy); // passed test numer 2 mySelectedTestProxy = null; final SMTestProxy testPassed2 = createTestProxy("testPassed2", testsSuite); testPassed2.setStarted(); myUIActionsHandler.onTestNodeAdded(myResultsViewer, testPassed2); assertNull(mySelectedTestProxy); testPassed2.setFinished(); //myUIActionsHandler.onTestFinished(testPassed2); assertNull(mySelectedTestProxy); //failed test 2 final SMTestProxy testFailed2 = createTestProxy("testFailed1", testsSuite); testFailed2.setStarted(); myUIActionsHandler.onTestNodeAdded(myResultsViewer, testFailed2); assertNull(mySelectedTestProxy); testFailed2.setTestFailed("", "", false); //myUIActionsHandler.onTestFinished(testFailed2); assertNull(mySelectedTestProxy); // finish suite testsSuite.setFinished(); assertNull(mySelectedTestProxy); //testing finished mySuite.setFinished(); assertNull(mySelectedTestProxy); myUIActionsHandler.onTestingFinished(myResultsViewer); assertEquals(testFailed1, mySelectedTestProxy); }