void () { TestConsoleProperties.TRACK_RUNNING_TEST.set(myProperties, true); mySuite.setStarted(); final SMTestProxy testsSuite = createSuiteProxy("my suite", mySuite); testsSuite.setStarted(); assertNull(mySelectedTestProxy); // passed test final SMTestProxy testPassed1 = createTestProxy("testPassed1", testsSuite); testPassed1.setStarted(); myResultsForm.onTestStarted(testPassed1); assertEquals(testPassed1, mySelectedTestProxy); testPassed1.setFinished(); //myUIActionsHandler.onTestFinished(testPassed1); assertEquals(testPassed1, mySelectedTestProxy); //failed test final SMTestProxy testFailed1 = createTestProxy("testFailed1", testsSuite); testFailed1.setStarted(); myResultsForm.onTestStarted(testFailed1); assertEquals(testFailed1, mySelectedTestProxy); testFailed1.setTestFailed("", "", false); //myUIActionsHandler.onTestFinished(testFailed1); assertEquals(testFailed1, mySelectedTestProxy); //error test final SMTestProxy testError = createTestProxy("testError", testsSuite); testError.setStarted(); myResultsForm.onTestStarted(testError); assertEquals(testError, mySelectedTestProxy); testError.setTestFailed("", "", true); //myUIActionsHandler.onTestFinished(testError); assertEquals(testError, mySelectedTestProxy); //terminated test final SMTestProxy testTerminated = createTestProxy("testTerimated", testsSuite); testTerminated.setStarted(); myResultsForm.onTestStarted(testTerminated); assertEquals(testTerminated, mySelectedTestProxy); testTerminated.setTerminated(); //myUIActionsHandler.onTestFinished(testError); assertEquals(testTerminated, mySelectedTestProxy); // passed test numer 2 mySelectedTestProxy = null; final SMTestProxy testPassed2 = createTestProxy("testPassed2", testsSuite); testPassed2.setStarted(); myResultsForm.onTestStarted(testPassed2); assertEquals(testPassed2, mySelectedTestProxy); testPassed2.setFinished(); //myUIActionsHandler.onTestFinished(testPassed2); assertEquals(testPassed2, mySelectedTestProxy); //failed test 2 final SMTestProxy testFailed2 = createTestProxy("testFailed2", testsSuite); testFailed2.setStarted(); myResultsForm.onTestStarted(testFailed2); assertEquals(testFailed2, mySelectedTestProxy); final SMTestProxy lastSelectedTest = testFailed2; testFailed2.setTestFailed("", "", false); //myUIActionsHandler.onTestFinished(testFailed2); assertEquals(lastSelectedTest, mySelectedTestProxy); // finish suite testsSuite.setFinished(); assertEquals(lastSelectedTest, mySelectedTestProxy); // root suite finished mySuite.setFinished(); assertEquals(lastSelectedTest, mySelectedTestProxy); //testing finished //myResultsForm.onTestingFinished(myResultsViewer.getTestsRootNode()); myUIActionsHandler.onTestingFinished(myResultsViewer); assertEquals(lastSelectedTest, mySelectedTestProxy); }