Class ShouldNotBeNull

java.lang.Object
org.fest.assertions.error.ShouldNotBeNull
All Implemented Interfaces:
ErrorMessageFactory

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

    • shouldNotBeNull

      public static ErrorMessageFactory shouldNotBeNull()
      Returns the singleton instance of this class.
      Returns:
      the singleton instance of this class.
    • create

      public 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.