void (int code) { if (mySkipExitCodeAssertion) { return; } // If test framework doesn't support exit codes, overwrite this method SMRootTestProxy proxy = getTestProxy(); if (proxy.isPassed()) { Assert.assertEquals("Exit code must be 0 if all tests are passed", 0, code); } else if (proxy.isIgnored()) { assertExitCodeForSkippedTests(code); } else { Assert.assertNotEquals("Exit code must NOT be 0 if some tests failed", 0, code); } }