Result (JUnit API)
Date: 2011-08-22

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.junit.runner
Class Result

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

    public class Result

extends Object

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.

Constructor Summary
`Result()`

Method Summary
`RunListener` | `createListener()` Internal use only.
`int` | `getFailureCount()`
`List<Failure>` | `getFailures()`
`int` | `getIgnoreCount()`
`int` | `getRunCount()`
`long` | `getRunTime()`
`boolean` | `wasSuccessful()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Result

    public Result()

Method Detail

### getRunCount

    public int getRunCount()

  Returns:
    the number of tests run

### getFailureCount

    public int getFailureCount()

  Returns:
    the number of tests that failed during the run

### getRunTime

    public long getRunTime()

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

### getFailures

    public List<Failure> getFailures()

  Returns:
    the `Failure`s describing tests that failed and the problems they encountered

### getIgnoreCount

    public int getIgnoreCount()

  Returns:
    the number of tests ignored during the run

### wasSuccessful

    public boolean wasSuccessful()

  Returns:
    `true` if all tests succeeded

### createListener

    public RunListener createListener()

  Internal use only.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD