com.google.common.testing
Class FluentAsserts

java.lang.Object
  extended by com.google.common.testing.FluentAsserts

public class FluentAsserts
extends Object

JDK5 hack for Truth that reduces generics and eases type inference.

Author:
Louis Wasserman

Method Summary
static
<T> org.truth0.subjects.CollectionSubject<? extends org.truth0.subjects.CollectionSubject<?,T,Collection<T>>,T,Collection<T>>
assertThat(Collection<T> collection)
           
static org.truth0.subjects.IntegerSubject assertThat(int x)
           
static
<T> org.truth0.subjects.IterableSubject<? extends org.truth0.subjects.IterableSubject<?,T,Iterable<T>>,T,Iterable<T>>
assertThat(Iterable<T> collection)
           
static
<K,V> org.truth0.subjects.MapSubject<? extends org.truth0.subjects.MapSubject<?,K,V,Map<K,V>>,K,V,Map<K,V>>
assertThat(Map<K,V> collection)
           
static org.truth0.subjects.Subject<org.truth0.subjects.DefaultSubject,Object> assertThat(Object object)
           
static org.truth0.subjects.StringSubject assertThat(String string)
           
static
<T> org.truth0.subjects.ListSubject<? extends org.truth0.subjects.ListSubject<?,T,List<T>>,T,List<T>>
assertThat(T[] array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertThat

public static <T> org.truth0.subjects.CollectionSubject<? extends org.truth0.subjects.CollectionSubject<?,T,Collection<T>>,T,Collection<T>> assertThat(Collection<T> collection)

assertThat

public static <T> org.truth0.subjects.IterableSubject<? extends org.truth0.subjects.IterableSubject<?,T,Iterable<T>>,T,Iterable<T>> assertThat(Iterable<T> collection)

assertThat

public static <K,V> org.truth0.subjects.MapSubject<? extends org.truth0.subjects.MapSubject<?,K,V,Map<K,V>>,K,V,Map<K,V>> assertThat(Map<K,V> collection)

assertThat

public static <T> org.truth0.subjects.ListSubject<? extends org.truth0.subjects.ListSubject<?,T,List<T>>,T,List<T>> assertThat(T[] array)

assertThat

public static org.truth0.subjects.StringSubject assertThat(String string)

assertThat

public static org.truth0.subjects.IntegerSubject assertThat(int x)

assertThat

public static org.truth0.subjects.Subject<org.truth0.subjects.DefaultSubject,Object> assertThat(Object object)


Copyright © 2010-2013. All Rights Reserved.