Class OptionalShouldBePresentWithValue

  • All Implemented Interfaces:
    ErrorMessageFactory

    public final class OptionalShouldBePresentWithValue
    extends BasicErrorMessageFactory
    Creates an error message indicating that an Optional should contain an expected value
    • Constructor Detail

      • OptionalShouldBePresentWithValue

        private OptionalShouldBePresentWithValue​(java.lang.String format,
                                                 java.lang.Object... arguments)
    • Method Detail

      • shouldBePresentWithValue

        public static <T> ErrorMessageFactory shouldBePresentWithValue​(com.google.common.base.Optional<T> actual,
                                                                       java.lang.Object value)
      • shouldBePresentWithValue

        public static <T> ErrorMessageFactory shouldBePresentWithValue​(java.lang.Object value)