A B C D E F G H I L M O R S T W

A

about(SF) - Method in class org.truth0.AbstractVerb
The recommended method of extension of Truth to new types, which is documented in org.truth0.delegatetest.DelegationTest .
AbstractVerb - Class in org.truth0
 
AbstractVerb(FailureStrategy) - Constructor for class org.truth0.AbstractVerb
 
AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T> - Class in org.truth0
A special Verb implementation which wraps a SubjectFactory
AbstractVerb.DelegatedVerb(FailureStrategy, SubjectFactory<S, T>) - Constructor for class org.truth0.AbstractVerb.DelegatedVerb
 
allFrom(Collection<E>) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at least all of the objects contained in the provided collection or fails, coping with duplicates in both the Collection and the parameters.
allOf(E) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at least all of the provided objects or fails, coping with duplicates in both the Collection and the parameters.
allOf(E, E, E...) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at least all of the provided objects or fails, coping with duplicates in both the Collection and the parameters.
anyFrom(Collection<E>) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at least one of the objects contained in the provided collection or fails.
anyOf(E) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at least one of the provided objects or fails.
anyOf(E, E, E...) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at least one of the provided objects or fails.
apply(Statement, FrameworkMethod, Object) - Method in class org.truth0.Expect
 
ASSERT - Static variable in class org.truth0.Truth
 
ASSUME - Static variable in class org.truth0.Truth
 

B

BooleanSubject - Class in org.truth0.subjects
Propositions for boolean subjects
BooleanSubject(FailureStrategy, Boolean) - Constructor for class org.truth0.subjects.BooleanSubject
 
build() - Method in class org.truth0.codegen.IteratingWrapperClassBuilder
 

C

check() - Method in class org.truth0.subjects.Subject
A convenience for implementers of Subject subclasses to use other truth Subject wrappers within their own propositional logic.
className - Variable in class org.truth0.codegen.IteratingWrapperClassBuilder
 
ClassSubject - Class in org.truth0.subjects
 
ClassSubject(FailureStrategy, Class<?>) - Constructor for class org.truth0.subjects.ClassSubject
 
CollectionSubject<S extends CollectionSubject<S,T,C>,T,C extends Collection<T>> - Class in org.truth0.subjects
 
CollectionSubject(FailureStrategy, C) - Constructor for class org.truth0.subjects.CollectionSubject
 
CollectionSubject.Has<E,C extends Collection<E>> - Interface in org.truth0.subjects
 
CompilingClassLoader - Class in org.truth0.codegen
This is a Java ClassLoader that will attempt to load a class from a string of source code.
CompilingClassLoader(ClassLoader, String, String, DiagnosticListener<JavaFileObject>) - Constructor for class org.truth0.codegen.CompilingClassLoader
 
CompilingClassLoader.CompilerException - Exception in org.truth0.codegen
Thrown when code cannot be compiled.
CompilingClassLoader.CompilerException(String) - Constructor for exception org.truth0.codegen.CompilingClassLoader.CompilerException
 
contains(String) - Method in class org.truth0.subjects.StringSubject
 
containsSequence(List<?>) - Method in class org.truth0.subjects.ListSubject
Attests that a List contains the specified sequence.
create() - Static method in class org.truth0.Expect
 
create(FailureStrategy, Collection<T>) - Static method in class org.truth0.subjects.CollectionSubject
 
create(FailureStrategy, Iterable<T>) - Static method in class org.truth0.subjects.IterableSubject
 
create(FailureStrategy, List<T>) - Static method in class org.truth0.subjects.ListSubject
 
create(FailureStrategy, Map<K, V>) - Static method in class org.truth0.subjects.MapSubject
 

D

declaresField(String) - Method in class org.truth0.subjects.ClassSubject
 
DefaultSubject - Class in org.truth0.subjects
 
DefaultSubject(FailureStrategy, Object) - Constructor for class org.truth0.subjects.DefaultSubject
 

E

endsWith(String) - Method in class org.truth0.subjects.StringSubject
 
equals(Object) - Method in class org.truth0.subjects.Subject
Deprecated. This method is not a proposition, but the default Object equality method. Testing code should use "is" or "isEqualTo" propositions for equality tests.
exactly(E) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at all of the provided objects and only these objects or fails.
exactly(E, E, E...) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at all of the provided objects and only these objects or fails.
exactlyAs(Collection<E>) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at all of the objects contained in the provided collection and only these objects or fails.
Expect - Class in org.truth0
 
Expect.ExpectationGatherer - Class in org.truth0
 
Expect.ExpectationGatherer() - Constructor for class org.truth0.Expect.ExpectationGatherer
 

F

fail() - Method in class org.truth0.AbstractVerb
Triggers the failure strategy with an empty failure message
fail(String, Object...) - Method in class org.truth0.AbstractVerb
Triggers the failure strategy with the given failure message
fail(String) - Method in class org.truth0.Expect.ExpectationGatherer
 
fail(String, Throwable) - Method in class org.truth0.Expect.ExpectationGatherer
 
fail(String) - Method in class org.truth0.FailureStrategy
 
fail(String, Throwable) - Method in class org.truth0.FailureStrategy
 
fail(String, Object...) - Method in class org.truth0.subjects.Subject
Assembles a failure message and passes such to the FailureStrategy
failComparing(String, CharSequence, CharSequence) - Method in class org.truth0.Expect.ExpectationGatherer
 
failComparing(String, CharSequence, CharSequence) - Method in class org.truth0.FailureStrategy
 
FailureStrategy - Class in org.truth0
 
FailureStrategy() - Constructor for class org.truth0.FailureStrategy
 
failureStrategy - Variable in class org.truth0.subjects.Subject
 
FailureStrategy.ThrowableAssertionError - Error in org.truth0
 
FailureStrategy.ThrowableAssertionError(String, Throwable) - Constructor for error org.truth0.FailureStrategy.ThrowableAssertionError
 
failWithBadResults(String, Object, String, Object) - Method in class org.truth0.subjects.Subject
Assembles a failure message and passes it to the FailureStrategy
failWithCustomSubject(String, Object, Object) - Method in class org.truth0.subjects.Subject
Assembles a failure message with an alternative representation of the wrapped subject and passes it to the FailureStrategy
failWithoutSubject(String) - Method in class org.truth0.subjects.Subject
Assembles a failure message without a given subject and passes it to the FailureStrategy
failWithRawMessage(String, Object...) - Method in class org.truth0.subjects.Subject
Passes through a failure message verbatim.
findClass(String) - Method in class org.truth0.codegen.CompilingClassLoader
Override ClassLoader's class resolving method.
format(String, Object...) - Static method in class org.truth0.util.StringUtil
Substitutes each %s in template with an argument.

G

getDisplaySubject() - Method in class org.truth0.subjects.StringSubject
 
getDisplaySubject() - Method in class org.truth0.subjects.Subject
 
getFailureStrategy() - Method in class org.truth0.AbstractVerb
 
getFailureStrategy() - Method in class org.truth0.Expect
 
getField(Class<?>, String) - Static method in class org.truth0.util.ReflectionUtil
 
getSubject() - Method in class org.truth0.subjects.Subject
 
getSubject(FailureStrategy, T) - Method in class org.truth0.subjects.SubjectFactory
 

H

has() - Method in class org.truth0.subjects.CollectionSubject
 
hashCode() - Method in class org.truth0.subjects.Subject
Deprecated. Equals/Hashcode is not supported on Subjects. Their only use is as a holder of propositions. Use of equals() is deprecated and forwards to isEqualTo() and hashCode() is disallowed.
hasKey(K) - Method in class org.truth0.subjects.MapSubject
Attests that the subject contains the provided key or fails.
hasValue(V) - Method in class org.truth0.subjects.MapSubject
 

I

in(Iterable<T>) - Method in class org.truth0.AbstractVerb
 
inOrder() - Method in interface org.truth0.subjects.Ordered
An additional assertion, implemented by some containment subjects which allows for a further constraint of orderedness.
INTEGER - Static variable in class org.truth0.subjects.IntegerSubject
 
IntegerSubject - Class in org.truth0.subjects
Propositions for Integral numeric subjects
IntegerSubject(FailureStrategy, Long) - Constructor for class org.truth0.subjects.IntegerSubject
 
IntegerSubject(FailureStrategy, Integer) - Constructor for class org.truth0.subjects.IntegerSubject
 
internalCustomLabel() - Method in class org.truth0.subjects.Subject
 
is(int) - Method in class org.truth0.subjects.IntegerSubject
 
is(short) - Method in class org.truth0.subjects.IntegerSubject
 
is(byte) - Method in class org.truth0.subjects.IntegerSubject
 
is(Object) - Method in class org.truth0.subjects.StringSubject
 
is(Object) - Method in class org.truth0.subjects.Subject
 
isBetween(long, long) - Method in class org.truth0.subjects.IntegerSubject
Attests that a Subject is exclusively within the lower and upper bounds provided or fails.
isEmpty() - Method in class org.truth0.subjects.CollectionSubject
Attests that a Collection is empty or fails.
isEmpty() - Method in class org.truth0.subjects.IterableSubject
Attests that the subject holds no more objects, or fails.
isEmpty() - Method in class org.truth0.subjects.MapSubject
Attests that the subject holds no objects, or fails.
isEqualTo(Integer) - Method in class org.truth0.subjects.IntegerSubject
 
isEqualTo(Long) - Method in class org.truth0.subjects.IntegerSubject
 
isEqualTo(Object) - Method in class org.truth0.subjects.StringSubject
 
isEqualTo(Object) - Method in class org.truth0.subjects.Subject
 
isFalse() - Method in class org.truth0.subjects.BooleanSubject
 
isInclusivelyInRange(long, long) - Method in class org.truth0.subjects.IntegerSubject
Attests that a Subject is inclusively within the lower and upper bounds provided or fails.
isNotEmpty() - Method in class org.truth0.subjects.IterableSubject
Attests that the subject holds one or more objects, or fails
isNotEmpty() - Method in class org.truth0.subjects.MapSubject
Attests that the subject holds one or more objects, or fails
isNotEqualTo(Integer) - Method in class org.truth0.subjects.IntegerSubject
 
isNotEqualTo(Long) - Method in class org.truth0.subjects.IntegerSubject
 
isNotEqualTo(Object) - Method in class org.truth0.subjects.Subject
 
isNotNull() - Method in class org.truth0.subjects.Subject
 
isNull() - Method in class org.truth0.subjects.StringSubject
 
isNull() - Method in class org.truth0.subjects.Subject
 
isOrdered() - Method in class org.truth0.subjects.ListSubject
Attests that a List is strictly ordered according to the natural ordering of its elements.
isOrdered(Comparator<T>) - Method in class org.truth0.subjects.ListSubject
Attests that a List is strictly ordered according to the given comparator.
isPartiallyOrdered() - Method in class org.truth0.subjects.ListSubject
Attests that a List is partially ordered according to the natural ordering of its elements.
isPartiallyOrdered(Comparator<T>) - Method in class org.truth0.subjects.ListSubject
Attests that a List is partially ordered according to the given comparator.
isTrue() - Method in class org.truth0.subjects.BooleanSubject
 
item(E) - Method in interface org.truth0.subjects.CollectionSubject.Has
Attests that a Collection contains at least the item
IterableSubject<S extends IterableSubject<S,T,C>,T,C extends Iterable<T>> - Class in org.truth0.subjects
 
IterableSubject(FailureStrategy, C) - Constructor for class org.truth0.subjects.IterableSubject
 
iteratesAs(Iterable<?>) - Method in class org.truth0.subjects.IterableSubject
Asserts that the items are supplied in the order given by the iterable.
iteratesAs(Object...) - Method in class org.truth0.subjects.IterableSubject
Asserts that the items are supplied in the order given by the iterable.
iteratesOverSequence(Object...) - Method in class org.truth0.subjects.IterableSubject
Deprecated. use #iteratesAs(T...)
IteratingVerb<T> - Class in org.truth0
A verb that iterates over data and applies the predicate iteratively
IteratingVerb(Iterable<T>, FailureStrategy) - Constructor for class org.truth0.IteratingVerb
 
IteratingWrapperClassBuilder - Class in org.truth0.codegen
A builder of classes to wrap a provided SubjectFactory's concrete Subject subclass.
IteratingWrapperClassBuilder(SubjectFactory<?, ?>) - Constructor for class org.truth0.codegen.IteratingWrapperClassBuilder
 

L

labeled(String) - Method in class org.truth0.subjects.Subject
 
lacksKey(K) - Method in class org.truth0.subjects.MapSubject
 
lacksValue(V) - Method in class org.truth0.subjects.MapSubject
 
ListSubject<S extends ListSubject<S,T,C>,T,C extends List<T>> - Class in org.truth0.subjects
 
ListSubject(FailureStrategy, C) - Constructor for class org.truth0.subjects.ListSubject
 

M

MapSubject<S extends MapSubject<S,K,V,M>,K,V,M extends Map<K,V>> - Class in org.truth0.subjects
 
MapSubject(FailureStrategy, M) - Constructor for class org.truth0.subjects.MapSubject
 
MapSubject.WithValue<V> - Interface in org.truth0.subjects
 
messageFor(String, CharSequence, CharSequence) - Static method in class org.truth0.util.StringUtil
Returns a message appropriate for string comparisons.

O

Ordered - Interface in org.truth0.subjects
 
org.truth0 - package org.truth0
 
org.truth0.codegen - package org.truth0.codegen
 
org.truth0.subjects - package org.truth0.subjects
 
org.truth0.util - package org.truth0.util
 

R

ReflectionUtil - Class in org.truth0.util
Reflection utility methods.

S

startsWith(String) - Method in class org.truth0.subjects.StringSubject
 
STRING - Static variable in class org.truth0.subjects.StringSubject
 
StringSubject - Class in org.truth0.subjects
Propositions for String subjects
StringSubject(FailureStrategy, String) - Constructor for class org.truth0.subjects.StringSubject
 
StringUtil - Class in org.truth0.util
Utilities for string comparisons.
Subject<S extends Subject<S,T>,T> - Class in org.truth0.subjects
Propositions for arbitrarily typed subjects and for properties of Object
Subject(FailureStrategy, T) - Constructor for class org.truth0.subjects.Subject
 
SubjectFactory<S extends Subject<S,T>,T> - Class in org.truth0.subjects
A custom subject factory which will return a FooSubject (which is a Subject).
SubjectFactory() - Constructor for class org.truth0.subjects.SubjectFactory
 

T

TestVerb - Class in org.truth0
 
TestVerb(FailureStrategy) - Constructor for class org.truth0.TestVerb
 
that(T) - Method in class org.truth0.AbstractVerb.DelegatedVerb
 
that(Object) - Method in class org.truth0.TestVerb
 
that(Class<?>) - Method in class org.truth0.TestVerb
 
that(Long) - Method in class org.truth0.TestVerb
 
that(Integer) - Method in class org.truth0.TestVerb
 
that(Boolean) - Method in class org.truth0.TestVerb
 
that(String) - Method in class org.truth0.TestVerb
 
that(Iterable<T>) - Method in class org.truth0.TestVerb
 
that(Collection<T>) - Method in class org.truth0.TestVerb
 
that(List<T>) - Method in class org.truth0.TestVerb
 
that(T[]) - Method in class org.truth0.TestVerb
 
that(Map<K, V>) - Method in class org.truth0.TestVerb
 
thatEach(SF) - Method in class org.truth0.IteratingVerb
 
THROW_ASSERTION_ERROR - Static variable in class org.truth0.Truth
 
THROW_ASSUMPTION_ERROR - Static variable in class org.truth0.Truth
 
Truth - Class in org.truth0
Truth - a proposition framework for tests, supporting JUnit style assertion and assumption semantics in a fluent style.
Truth() - Constructor for class org.truth0.Truth
 
typeParameter(Class<?>, int) - Static method in class org.truth0.util.ReflectionUtil
Returns the captured type.

W

withValue(V) - Method in interface org.truth0.subjects.MapSubject.WithValue
 

A B C D E F G H I L M O R S T W

Copyright © 2014. All rights reserved.