Code example for TestResult

Methods: errorsfailures

0
            suite.tests.add(test);
        } 
    } 
 
    public void setResults(TestResult result) {
        populateFailures(true, result.errors());
        populateFailures(false, result.failures());
    } 
 
    /** 
     * Populate the list of failures in each of the suites. 
     */ 
    private void populateFailures(boolean errors, Enumeration<TestFailure> failures) {
        while (failures.hasMoreElements()) {
            TestFailure failure = failures.nextElement();
            TestId test = new TestId(failure.failedTest());
            Suite suite = suites.get(test.className);
 
            if (suite == null) {
                throw new IllegalStateException( "received a failure for a "
Connect your IDE to all the code out there  Get Codota for Java