Class ITestElement.FailureTrace

  • Enclosing interface:
    ITestElement

    public static final class ITestElement.FailureTrace
    extends java.lang.Object
    A failure trace of a test. This class is not intended to be instantiated or extended by clients.
    • Constructor Summary

      Constructors 
      Constructor Description
      FailureTrace​(java.lang.String trace, java.lang.String expected, java.lang.String actual)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getActual()
      Returns the actual result or null if the trace is not a comparison failure.
      java.lang.String getExpected()
      Returns the expected result or null if the trace is not a comparison failure.
      java.lang.String getTrace()
      Returns the failure stack trace.
      boolean isComparisonFailure()
      Returns true in case of comparison failure.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FailureTrace

        public FailureTrace​(java.lang.String trace,
                            java.lang.String expected,
                            java.lang.String actual)
    • Method Detail

      • getTrace

        public java.lang.String getTrace()
        Returns the failure stack trace.
        Returns:
        the failure stack trace
      • getExpected

        public java.lang.String getExpected()
        Returns the expected result or null if the trace is not a comparison failure.
        Returns:
        the expected result or null if the trace is not a comparison failure.
      • getActual

        public java.lang.String getActual()
        Returns the actual result or null if the trace is not a comparison failure.
        Returns:
        the actual result or null if the trace is not a comparison failure.
      • isComparisonFailure

        public boolean isComparisonFailure()
        Returns true in case of comparison failure.
        Returns:
        true in case of comparison failure, otherwise returns false