com.google.common.truth
Class TestVerb

java.lang.Object
  extended by com.google.common.truth.AbstractVerb<TestVerb>
      extended by com.google.common.truth.TestVerb
Direct Known Subclasses:
Expect, TestVerb

public class TestVerb
extends AbstractVerb<TestVerb>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.truth.AbstractVerb
AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T>, AbstractVerb.MessageOverridingFailureStrategy
 
Constructor Summary
TestVerb(FailureStrategy failureStrategy)
           
TestVerb(FailureStrategy failureStrategy, String failureMessage)
           
 
Method Summary
 String getFailureMessage()
           
 BooleanSubject that(Boolean target)
           
 PrimitiveBooleanArraySubject that(boolean[] target)
           
 PrimitiveCharArraySubject that(char[] target)
           
 ClassSubject that(Class<?> target)
           
<T,C extends Collection<T>>
CollectionSubject<? extends CollectionSubject<?,T,C>,T,C>
that(Collection<T> target)
           
 PrimitiveDoubleArraySubject that(double[] target)
           
 PrimitiveFloatArraySubject that(float[] target)
           
 PrimitiveIntArraySubject that(int[] target)
           
 IntegerSubject that(Integer target)
           
<T,C extends Iterable<T>>
IterableSubject<? extends IterableSubject<?,T,C>,T,C>
that(Iterable<T> target)
           
<T,C extends List<T>>
ListSubject<? extends ListSubject<?,T,C>,T,C>
that(List<T> target)
           
 IntegerSubject that(Long target)
           
 PrimitiveLongArraySubject that(long[] target)
           
<K,V,M extends Map<K,V>>
MapSubject<? extends MapSubject<?,K,V,M>,K,V,M>
that(Map<K,V> target)
           
 Subject<DefaultSubject,Object> that(Object target)
           
<T> OptionalSubject<T>
that(com.google.common.base.Optional<T> target)
           
 StringSubject that(String target)
           
<T> ObjectArraySubject<T>
that(T[] target)
           
 TestVerb withFailureMessage(String failureMessage)
          Overrides the failure message of the subsequent subject's propositions.
 
Methods inherited from class com.google.common.truth.AbstractVerb
about, fail, fail, getFailureStrategy, in
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestVerb

public TestVerb(FailureStrategy failureStrategy)

TestVerb

public TestVerb(FailureStrategy failureStrategy,
                String failureMessage)
Method Detail

that

@CheckReturnValue
public Subject<DefaultSubject,Object> that(Object target)

that

@CheckReturnValue
@GwtIncompatible(value="ClassSubject.java")
public ClassSubject that(Class<?> target)

that

@CheckReturnValue
public IntegerSubject that(Long target)

that

@CheckReturnValue
public IntegerSubject that(Integer target)

that

@CheckReturnValue
public BooleanSubject that(Boolean target)

that

@CheckReturnValue
public StringSubject that(String target)

that

@CheckReturnValue
public <T,C extends Iterable<T>> IterableSubject<? extends IterableSubject<?,T,C>,T,C> that(Iterable<T> target)

that

@CheckReturnValue
public <T,C extends Collection<T>> CollectionSubject<? extends CollectionSubject<?,T,C>,T,C> that(Collection<T> target)

that

@CheckReturnValue
public <T,C extends List<T>> ListSubject<? extends ListSubject<?,T,C>,T,C> that(List<T> target)

that

@CheckReturnValue
public <T> ObjectArraySubject<T> that(T[] target)

that

@CheckReturnValue
public PrimitiveBooleanArraySubject that(boolean[] target)

that

@CheckReturnValue
public PrimitiveIntArraySubject that(int[] target)

that

@CheckReturnValue
public PrimitiveLongArraySubject that(long[] target)

that

@CheckReturnValue
public PrimitiveCharArraySubject that(char[] target)

that

@CheckReturnValue
public PrimitiveFloatArraySubject that(float[] target)

that

@CheckReturnValue
public PrimitiveDoubleArraySubject that(double[] target)

that

@CheckReturnValue
public <T> OptionalSubject<T> that(com.google.common.base.Optional<T> target)

that

@CheckReturnValue
public <K,V,M extends Map<K,V>> MapSubject<? extends MapSubject<?,K,V,M>,K,V,M> that(Map<K,V> target)

withFailureMessage

@CheckReturnValue
public TestVerb withFailureMessage(String failureMessage)
Description copied from class: AbstractVerb
Overrides the failure message of the subsequent subject's propositions.

Specified by:
withFailureMessage in class AbstractVerb<TestVerb>
See Also:
com.google.common.truth.delegation.DelegationTest

getFailureMessage

public String getFailureMessage()
Specified by:
getFailureMessage in class AbstractVerb<TestVerb>


Copyright © 2014. All rights reserved.