Code example for TestResult

0
        })); 
    } 
 
    @Override 
    protected TestResult createTestResult() {
        return new TestResult();
    } 
 
    /** 
     * Provides the main entry point. First and second argument are class and 
     * method name, respectively. Third argument is the temporary file name for 
     * the result. Exits with one of the usual JUnit exit values. 
     */ 
    public static void main(String args[]) {
        Logger.global.setLevel(Level.OFF);
 
        CoreTestIsolator testRunner = new CoreTestIsolator();
        try { 
            TestResult r = testRunner.start(args);
 
            if (!r.wasSuccessful()) {