void () { assertEquals(Magnitude.NOT_RUN_INDEX.getValue(), mySuite.getMagnitude()); final SMTestProxy passedTest = createTestProxy("passed"); final SMTestProxy failedTest = createTestProxy("failed"); mySuite.addChild(passedTest); mySuite.addChild(failedTest); assertEquals(Magnitude.NOT_RUN_INDEX.getValue(), mySuite.getMagnitude()); assertEquals(Magnitude.NOT_RUN_INDEX.getValue(), passedTest.getMagnitude()); assertEquals(Magnitude.NOT_RUN_INDEX.getValue(), failedTest.getMagnitude()); mySuite.setStarted(); assertEquals(Magnitude.RUNNING_INDEX.getValue(), mySuite.getMagnitude()); assertEquals(Magnitude.NOT_RUN_INDEX.getValue(), passedTest.getMagnitude()); assertEquals(Magnitude.NOT_RUN_INDEX.getValue(), failedTest.getMagnitude()); passedTest.setStarted(); assertEquals(Magnitude.RUNNING_INDEX.getValue(), mySuite.getMagnitude()); assertEquals(Magnitude.RUNNING_INDEX.getValue(), passedTest.getMagnitude()); assertEquals(Magnitude.NOT_RUN_INDEX.getValue(), failedTest.getMagnitude()); passedTest.setFinished(); assertEquals(Magnitude.RUNNING_INDEX.getValue(), mySuite.getMagnitude()); assertEquals(Magnitude.PASSED_INDEX.getValue(), passedTest.getMagnitude()); assertEquals(Magnitude.NOT_RUN_INDEX.getValue(), failedTest.getMagnitude()); failedTest.setStarted(); assertEquals(Magnitude.RUNNING_INDEX.getValue(), mySuite.getMagnitude()); assertEquals(Magnitude.PASSED_INDEX.getValue(), passedTest.getMagnitude()); assertEquals(Magnitude.RUNNING_INDEX.getValue(), failedTest.getMagnitude()); failedTest.setTestFailed("", "", false); assertEquals(Magnitude.RUNNING_INDEX.getValue(), mySuite.getMagnitude()); assertEquals(Magnitude.PASSED_INDEX.getValue(), passedTest.getMagnitude()); assertEquals(Magnitude.FAILED_INDEX.getValue(), failedTest.getMagnitude()); mySuite.setFinished(); assertEquals(Magnitude.FAILED_INDEX.getValue(), mySuite.getMagnitude()); assertEquals(Magnitude.PASSED_INDEX.getValue(), passedTest.getMagnitude()); assertEquals(Magnitude.FAILED_INDEX.getValue(), failedTest.getMagnitude()); }