void () { final SMTestProxy testPending = createTestProxy("pending"); mySuite.setStarted(); // failed test mySuite.addChild(mySimpleTest); mySimpleTest.setStarted(); mySimpleTest.setTestFailed("", "", false); mySimpleTest.setFinished(); // pending test mySuite.addChild(testPending); testPending.setStarted(); testPending.setTestIgnored("todo", null); assertFalse(testPending.isInProgress()); assertTrue(mySuite.isInProgress()); assertTrue(testPending.isDefect()); assertTrue(mySuite.isDefect()); testPending.setFinished(); // check that suite is failed assertTrue(mySuite.isInProgress()); assertTrue(mySuite.isDefect()); mySuite.setFinished(); assertFalse(mySuite.isInProgress()); assertTrue(mySuite.isDefect()); assertTrue(mySimpleTest.getMagnitudeInfo() == Magnitude.FAILED_INDEX); assertTrue(testPending.getMagnitudeInfo() == Magnitude.IGNORED_INDEX); assertTrue(mySuite.getMagnitudeInfo() == Magnitude.FAILED_INDEX); }