Class ShouldNotBeNull

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldNotBeNull
    extends BasicErrorMessageFactory
    Creates an error message that indicates an assertion that verifies that an object is not null failed.
    Author:
    Alex Ruiz
    • Constructor Detail

      • ShouldNotBeNull

        private ShouldNotBeNull​(String label)
    • Method Detail

      • shouldNotBeNull

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

        public static ShouldNotBeNull shouldNotBeNull​(String label)
        Create a instance specifying a label
        Parameters:
        label - of what should not be null
        Returns:
        the new instance