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