Class BasicErrorMessageFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object[] arguments  
      protected java.lang.String format  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String create​(Description d)
      Creates a new error message as a result of a failed assertion.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • format

        protected final java.lang.String format
      • arguments

        protected final java.lang.Object[] arguments
    • Constructor Detail

      • BasicErrorMessageFactory

        public BasicErrorMessageFactory​(java.lang.String format,
                                        java.lang.Object... arguments)
        Parameters:
        format - the format string.
        arguments - arguments referenced by the format specifiers in the format string.
    • Method Detail

      • create

        public java.lang.String create​(Description d)
        Creates a new error message as a result of a failed assertion.
        Specified by:
        create in interface ErrorMessageFactory
        Parameters:
        d - the description of the failed assertion.
        Returns:
        the created error message.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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