Initializer
TestResult(TestDescription description, TestState state, Boolean combined = false, Throwable? exception = null, Integer elapsedTime = 0)
Parameters:
  • description

    The test this is the result for.

  • state

    The result state of this test.

  • combined = false

    The flag if this is result of one test, or combined result from multiple tests (eg. result for test class).

  • exception = null

    The exception thrown during this test, if any.

  • elapsedTime = 0

    The total elapsed time in milliseconds.

Attributes
combinedSource Codeshared Boolean combined

The flag if this is result of one test, or combined result from multiple tests (eg. result for test class).

descriptionSource Codeshared TestDescription description

The test this is the result for.

elapsedTimeSource Codeshared Integer elapsedTime

The total elapsed time in milliseconds.

exceptionSource Codeshared Throwable? exception

The exception thrown during this test, if any.

stateSource Codeshared TestState state

The result state of this test.

stringSource Codeshared actual String string

A developer-friendly string representing the instance. Concatenates the name of the concrete class of the instance with the hash of the instance. Subclasses are encouraged to refine this implementation to produce a more meaningful representation.

Inherited Attributes
Attributes inherited from: Object
Inherited Methods
Methods inherited from: Object