public class TestVerb extends AbstractVerb<TestVerb>
AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T>, AbstractVerb.MessagePrependingFailureStrategy
Constructor and Description |
---|
TestVerb(FailureStrategy failureStrategy) |
TestVerb(FailureStrategy failureStrategy,
String failureMessage) |
Modifier and Type | Method and Description |
---|---|
String |
getFailureMessage() |
BooleanSubject |
that(Boolean target) |
PrimitiveBooleanArraySubject |
that(boolean[] target) |
PrimitiveByteArraySubject |
that(byte[] target) |
PrimitiveCharArraySubject |
that(char[] target) |
ClassSubject |
that(Class<?> target) |
<T,C extends Collection<T>> |
that(Collection<T> target)
Deprecated.
Use the
Iterable overload instead. |
PrimitiveDoubleArraySubject |
that(double[] target) |
PrimitiveFloatArraySubject |
that(float[] target) |
PrimitiveIntArraySubject |
that(int[] target) |
IntegerSubject |
that(Integer target) |
<T,C extends Iterable<T>> |
that(Iterable<T> target) |
<T,C extends List<T>> |
that(List<T> target) |
<K,V,M extends com.google.common.collect.ListMultimap<K,V>> |
that(com.google.common.collect.ListMultimap<K,V> target) |
LongSubject |
that(Long target) |
PrimitiveLongArraySubject |
that(long[] target) |
<K,V,M extends Map<K,V>> |
that(Map<K,V> target) |
<K,V,M extends com.google.common.collect.Multimap<K,V>> |
that(com.google.common.collect.Multimap<K,V> target) |
<E,M extends com.google.common.collect.Multiset<E>> |
that(com.google.common.collect.Multiset<E> target) |
Subject<DefaultSubject,Object> |
that(Object target) |
<T> OptionalSubject<T> |
that(com.google.common.base.Optional<T> target) |
<K,V,M extends com.google.common.collect.SetMultimap<K,V>> |
that(com.google.common.collect.SetMultimap<K,V> target) |
StringSubject |
that(String target) |
<T extends Comparable<?>> |
that(T target) |
<T> ObjectArraySubject<T> |
that(T[] target) |
<R,C,V,M extends com.google.common.collect.Table<R,C,V>> |
that(com.google.common.collect.Table<R,C,V> target) |
ThrowableSubject |
that(Throwable target) |
TestVerb |
withFailureMessage(String failureMessage)
Overrides the failure message of the subsequent subject's propositions.
|
about, fail, fail, getFailureStrategy, in
public TestVerb(FailureStrategy failureStrategy)
public TestVerb(FailureStrategy failureStrategy, String failureMessage)
@CheckReturnValue public <T extends Comparable<?>> ComparableSubject<?,T> that(T target)
@CheckReturnValue public Subject<DefaultSubject,Object> that(Object target)
@CheckReturnValue @GwtIncompatible(value="ClassSubject.java") public ClassSubject that(Class<?> target)
@CheckReturnValue public ThrowableSubject that(Throwable target)
@CheckReturnValue public LongSubject that(Long target)
@CheckReturnValue public IntegerSubject that(Integer target)
@CheckReturnValue public BooleanSubject that(Boolean target)
@CheckReturnValue public StringSubject that(String target)
@CheckReturnValue public <T,C extends Iterable<T>> IterableSubject<? extends IterableSubject<?,T,C>,T,C> that(Iterable<T> target)
@Deprecated @CheckReturnValue public <T,C extends Collection<T>> CollectionSubject<? extends CollectionSubject<?,T,C>,T,C> that(Collection<T> target)
Iterable
overload instead.@CheckReturnValue public <T,C extends List<T>> ListSubject<? extends ListSubject<?,T,C>,T,C> that(List<T> target)
@CheckReturnValue public <T> ObjectArraySubject<T> that(T[] target)
@CheckReturnValue public PrimitiveBooleanArraySubject that(boolean[] target)
@CheckReturnValue public PrimitiveIntArraySubject that(int[] target)
@CheckReturnValue public PrimitiveLongArraySubject that(long[] target)
@CheckReturnValue public PrimitiveCharArraySubject that(char[] target)
@CheckReturnValue public PrimitiveByteArraySubject that(byte[] target)
@CheckReturnValue public PrimitiveFloatArraySubject that(float[] target)
@CheckReturnValue public PrimitiveDoubleArraySubject that(double[] target)
@CheckReturnValue public <T> OptionalSubject<T> that(com.google.common.base.Optional<T> target)
@CheckReturnValue public <K,V,M extends Map<K,V>> MapSubject<? extends MapSubject<?,K,V,M>,K,V,M> that(Map<K,V> target)
@CheckReturnValue public <K,V,M extends com.google.common.collect.Multimap<K,V>> MultimapSubject<? extends MultimapSubject<?,K,V,M>,K,V,M> that(com.google.common.collect.Multimap<K,V> target)
@CheckReturnValue public <K,V,M extends com.google.common.collect.ListMultimap<K,V>> ListMultimapSubject<? extends ListMultimapSubject<?,K,V,M>,K,V,M> that(com.google.common.collect.ListMultimap<K,V> target)
@CheckReturnValue public <K,V,M extends com.google.common.collect.SetMultimap<K,V>> SetMultimapSubject<? extends SetMultimapSubject<?,K,V,M>,K,V,M> that(com.google.common.collect.SetMultimap<K,V> target)
@CheckReturnValue public <E,M extends com.google.common.collect.Multiset<E>> MultisetSubject<? extends MultisetSubject<?,E,M>,E,M> that(com.google.common.collect.Multiset<E> target)
@CheckReturnValue public <R,C,V,M extends com.google.common.collect.Table<R,C,V>> TableSubject<? extends TableSubject<?,R,C,V,M>,R,C,V,M> that(com.google.common.collect.Table<R,C,V> target)
@CheckReturnValue public TestVerb withFailureMessage(String failureMessage)
AbstractVerb
withFailureMessage
in class AbstractVerb<TestVerb>
com.google.common.truth.delegation.DelegationTest
public String getFailureMessage()
getFailureMessage
in class AbstractVerb<TestVerb>
Copyright © 2014. All rights reserved.