Class ShouldNotBeNull

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldNotBeNull
    extends java.lang.Object
    implements ErrorMessageFactory
    Creates an error message that indicates an assertion that verifies that an object is not null failed.
    Author:
    Alex Ruiz
    • Method Detail

      • shouldNotBeNull

        public static ErrorMessageFactory shouldNotBeNull()
        Returns the singleton instance of this class.
        Returns:
        the singleton instance of this class.
      • 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.