public static void setTapTestStatus(TestResult tapTestResult,
                                        JUnitTestData testMethod) {
        if (testMethod.isIgnored()) {
            tapTestResult.setStatus(StatusValues.NOT_OK);
            Directive skip = new Directive(DirectiveValues.SKIP,
                                           "JUnit test was skipped");
            tapTestResult.setDirective(skip);
        } else if (testMethod.isFailed()) {
            tapTestResult.setStatus(StatusValues.NOT_OK);
        } else {
            tapTestResult.setStatus(StatusValues.OK);
        }
    }
public static void setTapTestStatus ( TestResult tapTestResult , JUnitTestData testMethod ) { if ( testMethod . isIgnored ( ) ) { tapTestResult . setStatus ( StatusValues . NOT_OK ) ; Directive skip = new Directive ( DirectiveValues . SKIP , "JUnit test was skipped" ) ; tapTestResult . setDirective ( skip ) ; } else if ( testMethod . isFailed ( ) ) { tapTestResult . setStatus ( StatusValues . NOT_OK ) ; } else { tapTestResult . setStatus ( StatusValues . OK ) ; } }
Set the tap status

@param tapTestResult
@param testMethod