public class

Result

extends Object
java.lang.Object
   ↳ org.junit.runner.Result

Class Overview

A Result collects and summarizes information from running multiple tests. Since tests are expected to run correctly, successful tests are only noted in the count of tests that ran.

Summary

Public Constructors
Result()
Public Methods
RunListener createListener()
Internal use only.
int getFailureCount()
List<Failure> getFailures()
int getIgnoreCount()
int getRunCount()
long getRunTime()
boolean wasSuccessful()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Result ()

Public Methods

public RunListener createListener ()

Internal use only.

public int getFailureCount ()

Returns
  • the number of tests that failed during the run

public List<Failure> getFailures ()

Returns
  • the Failures describing tests that failed and the problems they encountered

public int getIgnoreCount ()

Returns
  • the number of tests ignored during the run

public int getRunCount ()

Returns
  • the number of tests run

public long getRunTime ()

Returns
  • the number of milliseconds it took to run the entire suite to run

public boolean wasSuccessful ()

Returns
  • true if all tests succeeded