Class ShouldContainOnlyNulls

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldContainOnlyNulls
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies a group of elements contains only null elements failed. A group of elements can be a collection or an array.
    • Constructor Detail

      • ShouldContainOnlyNulls

        private ShouldContainOnlyNulls​(java.lang.Object actual,
                                       ShouldContainOnlyNulls.ErrorType errorType,
                                       java.lang.Iterable<?> notExpected)
    • Method Detail

      • shouldContainOnlyNulls

        public static ErrorMessageFactory shouldContainOnlyNulls​(java.lang.Object actual)
        Creates a new ShouldContainOnlyNulls.
        Parameters:
        actual - the actual value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.
      • shouldContainOnlyNulls

        public static ErrorMessageFactory shouldContainOnlyNulls​(java.lang.Object actual,
                                                                 java.lang.Iterable<?> nonNullElements)