Interface TestResult


public interface TestResult
The result of a test.
Author:
Julien Viet
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The time at which the test began in millis.
    long
    How long the test lasted in millis.
    boolean
    Did it fail?
    An exception describing failure, null if the test succeeded.
    The test description, may be null if none was provided.
    boolean
    Did it succeed?
  • Method Details

    • name

      String name()
      The test description, may be null if none was provided.
    • beginTime

      long beginTime()
      The time at which the test began in millis.
    • durationTime

      long durationTime()
      How long the test lasted in millis.
    • succeeded

      boolean succeeded()
      Did it succeed?
    • failed

      boolean failed()
      Did it fail?
    • failure

      Failure failure()
      An exception describing failure, null if the test succeeded.