Class AssertionResult


  • public class AssertionResult
    extends java.lang.Object
    Class used to store assertion results.
    • Constructor Summary

      Constructors 
      Constructor Description
      AssertionResult​(java.lang.String type, boolean passed)  
      AssertionResult​(java.lang.String type, boolean passed, java.lang.String message)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns message, if message is null returns: "Assertion Failure [type]".
      boolean isPassed()
      Returns whether assertion passed.
      • Methods inherited from class java.lang.Object

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

      • AssertionResult

        public AssertionResult​(java.lang.String type,
                               boolean passed)
      • AssertionResult

        public AssertionResult​(java.lang.String type,
                               boolean passed,
                               java.lang.String message)
    • Method Detail

      • isPassed

        public boolean isPassed()
        Returns whether assertion passed.
        Returns:
        Did assertion pass.
      • getMessage

        public java.lang.String getMessage()
        Returns message, if message is null returns: "Assertion Failure [type]".
        Returns:
        The assertion message.