Class GuavaOptionalSubject

    • Method Detail

      • isPresent

        public void isPresent()
        Fails if the Optional <T> is absent or the subject is null.
      • isAbsent

        public void isAbsent()
        Fails if the Optional <T> is present or the subject is null..
      • hasValue

        public void hasValue(Object expected)
        Fails if the Optional <T> does not have the given value or the subject is null.