Class SingleTestResultData


  • public class SingleTestResultData
    extends java.lang.Object
    • Method Detail

      • getError

        public java.lang.Throwable getError()
        Returns:
        throwable caused test failed (if any)
      • hasError

        public boolean hasError()
      • getFailure

        public org.junit.runner.notification.Failure getFailure()
        Returns:
        Failure for failed test (if any)
      • hasFailure

        public boolean hasFailure()
      • isIgnored

        public boolean isIgnored()
        Returns:
        flag whether test was ignored or not (due to explicit Ignore or due to failed assumption Assume
      • isSuccessful

        public boolean isSuccessful()
        Returns:
        flag whether test was successful and not ignored
      • getTestClass

        public java.lang.Class getTestClass()
        Returns:
        test class name (as a Class object)
      • getTestCaseMethod

        public java.lang.String getTestCaseMethod()
        Returns:
        test case method (could be null)
      • getFullTestCaseMethod

        public java.lang.String getFullTestCaseMethod()
        Returns:
        fully Junit aware test method in form: testMethod(fully qualified class name)
      • getElapsedTime

        public long getElapsedTime()
        Returns:
        elapsed time of single test case
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object