I suggested .contains(value), but hasValue() is also good.


On Thu, May 15, 2014 at 12:32 PM, kevinb9n <notifications@github.com> wrote:

> In core/src/main/java/org/truth0/subjects/OptionalSubject.java:
>
> > + */
> > +package org.truth0.subjects;
> > +
> > +import com.google.common.annotations.GwtCompatible;
> > +import com.google.common.base.Optional;
> > +
> > +import org.truth0.FailureStrategy;
> > +
> > +
> > +/**
> > + * Propositions for {@link Optional<T>} subjects
> > + *
> > + * @author Christian Gruber (cgruber@israfil.net)
> > + */
> > +@GwtCompatible
> > +public class OptionalSubject extends Subject<OptionalSubject, Optional<?>> {
>
> Don't we want stuff like hasValue(value)?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/truth0/truth/pull/87/files#r12699124>
> .
>



-- 
kak