Class OptionalShouldBeAbsent

  • All Implemented Interfaces:
    org.assertj.core.error.ErrorMessageFactory

    public final class OptionalShouldBeAbsent
    extends org.assertj.core.error.BasicErrorMessageFactory
    Creates an error message indicating that an Optional which should be absent is actually present
    Author:
    Kornel Kiełczewski, Joel Costigliola
    • Field Summary

      • Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory

        arguments, format
    • Constructor Detail

      • OptionalShouldBeAbsent

        private OptionalShouldBeAbsent​(String format,
                                       Object... arguments)
    • Method Detail

      • shouldBeAbsent

        public static <T> org.assertj.core.error.ErrorMessageFactory shouldBeAbsent​(com.google.common.base.Optional<T> actual)