All Classes and Interfaces
Class
Description
Base class for all array assertions.
Base class for all assertions.
AbstractAtomicFieldUpdaterAssert<SELF extends AbstractAtomicFieldUpdaterAssert<SELF,VALUE,ATOMIC,OBJECT>,VALUE,ATOMIC,OBJECT>
Base class for all fieldupdater assertions.
AbstractAtomicReferenceAssert<SELF extends AbstractAtomicReferenceAssert<SELF,VALUE,ATOMIC>,VALUE,ATOMIC>
Base class for atomic assertions.
Base class for all implementations of assertions for
BigDecimal
s.Base class for all implementations of assertions for
BigInteger
s.Base class for all implementations of assertions for
Boolean
s.Base class for all implementations of assertions for
Byte
s.Base class for all implementations of assertions for
Character
s.AbstractCharSequenceAssert<SELF extends AbstractCharSequenceAssert<SELF,ACTUAL>,ACTUAL extends CharSequence>
Base class for all implementations of assertions for
CharSequence
s.Base class for all implementations of assertions for
Class
es.AbstractComparableAssert<SELF extends AbstractComparableAssert<SELF,ACTUAL>,ACTUAL extends Comparable<? super ACTUAL>>
Base class for all implementations of
ComparableAssert
.Base implementation of
ComparisonStrategy
contract.Assertions for
CompletableFuture
.Base class for all implementations of assertions for
Date
s.Base class for all implementations of assertions for
Double
s.Base implementation for Enumerable class assertions.
Base class for all implementations of assertions for
File
s.Base class for all implementations of assertions for
Float
s.AbstractFutureAssert<SELF extends AbstractFutureAssert<SELF,ACTUAL,RESULT>,ACTUAL extends Future<RESULT>,RESULT>
AbstractInputStreamAssert<SELF extends AbstractInputStreamAssert<SELF,ACTUAL>,ACTUAL extends InputStream>
Base class for all implementations of assertions for
InputStream
s.Assertions for
Instant
type from new Date & Time API introduced in Java 8.Base class for all implementations of assertions for
Integer
s.AbstractIterableAssert<SELF extends AbstractIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Base class for implementations of
ObjectEnumerableAssert
whose actual value type is
Collection
.AbstractIterableSizeAssert<SELF extends AbstractIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
AbstractListAssert<SELF extends AbstractListAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Base class for all implementations of assertions for
List
s.Assertions for
LocalDate
type from new Date & Time API introduced in Java 8.Assertions for
LocalDateTime
type from new Date & Time API introduced in Java 8.Assertions for
LocalTime
type from new Date & Time API introduced in Java 8.Base class for all implementations of assertions for
Long
s.Base class for all implementations of assertions for
Map
s.AbstractMapSizeAssert<SELF extends AbstractMapAssert<SELF,A,KEY,VALUE>,A extends Map<KEY,VALUE>,KEY,VALUE>
Assertion methods for arrays of objects.
Base class for all implementations of assertions for
Object
s.Assertions for
OffsetDateTime
type from new Date & Time API introduced in Java 8.Assertions for
OffsetTime
type from new Date & Time API introduced in Java 8.Assertions for
Optional
.Assertions for
OptionalDouble
.Assertions for
OptionalInt
.Assertions for
OptionalLong
.Assertions for
Path
objectsAssertions for
Predicate
.AbstractPredicateLikeAssert<SELF extends AbstractPredicateLikeAssert<SELF,PRIMITIVE_PREDICATE,PRIMITIVE>,PRIMITIVE_PREDICATE,PRIMITIVE>
Assertions for
Predicate
.Base class for all implementations of assertions for
Short
s.Base class for text content error.
AbstractTemporalAssert<SELF extends AbstractTemporalAssert<SELF,TEMPORAL>,TEMPORAL extends Temporal>
Base class for all implementations of assertions for
Temporal
s.Base class for all implementations of assertions for
Throwable
s.Base class for all implementations of assertions for
URI
s.Base class for all implementations of assertions for
URL
s.Returns
true
if all of the joined conditions is satisfied.Returns
true
if any of the joined conditions is satisfied.Assertions for object and primitive arrays.
Utility methods related to arrays.
Assertions applicable to primitive arrays or arrays of elements either naturally
Comparable
or according to a given
Comparator
.A list-like wrapper for arrays.
Base contract of all assertion objects: the minimum functionality that any assertion object should provide.
A marker interface that can be used to wrap your assertion within assertThat method for better readability.
A single method factory interface to create an
Assert
class for a given type.Factory of
AssertionError
s.Information about an assertion.
Generic Hamcrest
Matcher
that reuses AssertJ assertions.Entry point for assertion methods for different types.
Java 8 is picky when choosing the right
assertThat
method if the object under test is generic and bounded,
for example if foo is instance of T that extends Exception, java 8 will complain that it can't resolve
the proper assertThat
method (normally assertThat(Throwable)
as foo might implement an interface like List,
if that occurred assertThat(List)
would also be a possible choice - thus confusing java 8.Entry point for assertion methods for different data types.
Provides a
Assert
for the current object.Assertion methods for
AtomicIntegerFieldUpdater
s.Assertion methods for
AtomicLongFieldUpdater
s.Assertion methods for
AtomicMarkableReference
s.Assertion methods for
AtomicReferenceFieldUpdater
s.Assertion methods for
AtomicStampedReference
s.A version of
BDDSoftAssertions
that uses try-with-resources statement to automatically call
BDDSoftAssertions.assertAll()
so that you don't forget to.A version of
SoftAssertions
that uses try-with-resources statement to automatically call
SoftAssertions.assertAll()
so that you don't forget to.A factory of error messages typically shown when an assertion fails.
To avoid quoted String in message format.
Behavior-driven development style entry point for assertion methods for different types.
Suppose we have a test case and in it we'd like to make numerous BDD assertions.
Assertion methods for
BigDecimal
s.A
Is useful if ones wants to use BigDecimal assertions based on
BigDecimal
Comparator
based on BigDecimal.compareTo(BigDecimal)
.Is useful if ones wants to use BigDecimal assertions based on
BigDecimal.compareTo(BigDecimal)
instead of
BigDecimal.equals(Object)
method.Reusable assertions for
BigDecimal
s.Assertion methods for
BigInteger
s.A
Is useful if ones wants to use BigInteger assertions based on
BigInteger
Comparator
based on BigInteger.compareTo(BigInteger)
.Is useful if ones wants to use BigInteger assertions based on
BigInteger.compareTo(BigInteger)
instead of
BigInteger.equals(Object)
method.Reusable assertions for
BigInteger
s.Compares the binary content of two inputStreams/paths.
Value class to hold the result of comparing two binary streams.
Binary object representation instead of standard java representation.
Assertion methods for arrays of
boolean
s.Reusable assertions for arrays of
boolean
s.Assertion methods for
Boolean
s.Reusable assertions for
Boolean
s.Assertion methods for arrays of
byte
s.Reusable assertions for arrays of
byte
s.Assertion methods for
Byte
s.Reusable assertions for
Byte
s.Initially copied from https://code.google.com/p/java-diff-utils/.
Assertion methods for
Character
s.Reusable assertions for
Character
s.Assertion methods for arrays of
char
s.Reusable assertions for arrays of
char
s.Assertion methods for
CharSequence
s.Findbugs handles any annotation with name "CheckReturnValue" in return value check.
Copy from https://code.google.com/p/java-diff-utils/.
Assertion methods for
Class
es.ClassBasedNavigableIterableAssert<SELF extends ClassBasedNavigableIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Build the Assert instance by reflection.
ClassBasedNavigableListAssert<SELF extends ClassBasedNavigableListAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Build the Assert instance by reflection.
Reusable assertions for
Class
s.Creates an error message indicating that an assertion that verifies that a class is (or is not) final.
Utility methods related to
Closeable
.ComparableAssert<SELF extends ComparableAssert<SELF,ACTUAL>,ACTUAL extends Comparable<? super ACTUAL>>
Assertion methods applicable to
Comparable
s.Reusable assertions for
Comparable
s.Implements
ComparisonStrategy
contract with a comparison strategy based on a Comparator
.Describes the contract to implement a consistent comparison strategy that covers :
- comparing two objects for equality and order
- knowing if an object belongs to a group of objects (collection/array)
- determining duplicates in a group of objects (collection/array)
- string specific comparison
- comparing two objects for equality and order
- knowing if an object belongs to a group of objects (collection/array)
- determining duplicates in a group of objects (collection/array)
- string specific comparison
Compatibility with Android (Java 1.6)
Assertions for
CompletableFuture
.A condition to be met by an object.
Creates an error message indicating that an assertion that verifies type of elements of group and
Condition
A group of
elements can be a collection, an array.Verifies that a value satisfies a
Condition
.Access to constructors using Java reflection.
Assertions for
Date
s.Reusable assertions for
Date
s.Utility methods related to dates.
Tests two objects for differences by doing a 'deep' comparison.
Initially copied from https://code.google.com/p/java-diff-utils/.
Initially copied from https://code.google.com/p/java-diff-utils/.
Specifies the type of the delta.
Copy from https://code.google.com/p/java-diff-utils/.
An object that has a description.
The description of a value.
Formats the
Description
s to be included in assertion errors.Compares the contents of two files, inputStreams or paths.
Copy from https://code.google.com/p/java-diff-utils/.
Copy from https://code.google.com/p/java-diff-utils/.
Copy from https://code.google.com/p/java-diff-utils/.
Returns
true
if the condition is not satisfied.Assertion methods for arrays of
double
s.Reusable assertions for arrays of
double
s.Assertion methods for
Double
s.Assertions for
Predicate
.Reusable assertions for
Double
s.Creates an error message indicating that an assertion that verifies that each element of a group satisfies a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies at least n times a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies at most n times a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies exactly n times a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies that each element of a group satisfies a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies at least n times a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies at most n times a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies exactly n times a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that not verifies that each element of a group satisfies a
Condition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies that each element of a group satisfies a
Condition
A group of elements can be a collection, an array.A description containing empty text.
Assertions applicable to groups of values that can be enumerated (e.g.
Copy from https://code.google.com/p/java-diff-utils/.
Collects error messages of all AssertionErrors thrown by the proxied method.
Factory of error messages.
Mechanism for extending assertion classes.
Function converting an element to another element.
Extractors factory, providing convenient methods of creating common extractors.
FactoryBasedNavigableIterableAssert<SELF extends FactoryBasedNavigableIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Provides helper methods for navigating a list property in a generated assertion class so we can chain assertions
through deeply nested models more easily.
FactoryBasedNavigableListAssert<SELF extends FactoryBasedNavigableListAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Provides helper methods for navigating a list property in a generated assertion class so we can chain assertions
through deeply nested models more easily.
Common failures.
Failure actions.
Compares objects field/property by field/property including private fields unless
Assertions.setAllowComparingPrivateFields(boolean)
has been called with false.Understands how to retrieve fields or values from a collection/array of objects.
Utility methods for fields access.
Shameless copy from Apache commons lang and then modified to keep only the interesting stuff for AssertJ.
Assertion methods for
File
s.Reusable assertions for
File
s.Utility methods related to files.
Filters the elements of a given
Iterable
or array according to the specified filter criteria.Assertion methods for arrays of
float
s.Reusable assertions for arrays of
float
s.Assertion methods for floats.
FloatingPointNumberAssert<SELF extends FloatingPointNumberAssert<SELF,ACTUAL>,ACTUAL extends Number>
Assertion methods applicable to floating-point
Number
s.Reusable assertions for
Float
s.Assertion methods for
Future
.Reusable assertions for
Future
s.Concrete generic
ComparableAssert
to be used through Assertions.assertThat(java.lang.Comparable)
.Hexadecimal object representation instead of standard java representation.
A positive index.
Assertions methods applicable to indexed groups of objects (e.g.
Assertion methods for
InputStream
s.Reusable assertions for
InputStream
s.Exception thrown by
InputStreams
.Initially copied from https://code.google.com/p/java-diff-utils/.
Assertion methods for
Instant
s.Assertion methods for arrays of
int
s.Reusable assertions for arrays of
int
s.Assertion methods for
Integer
s.Reusable assertions for
Integer
s.Assertions for
Predicate
.Utility methods related to JavaBeans Introspection.
Error that occurred when using JavaBeans
Introspection.
Assertion methods for
Iterable
.Reusable assertions for
Iterable
s.AbstractBDDSoftAssertions compatible with Android.
AbstractStandardSoftAssertions compatible with Android.
Assertions compatible with Android.
Android-compatible BDD-style assertions duplicated from
BDDAssertions
.BDD-style Android-compatible soft assertions.
Duplicate of
JUnitBDDSoftAssertions
compatible with Android.JUnitSoftAssertions rule compatible with Android.
Soft assertions compatible with Android.
Join of two or more
Condition
s.Same as
First, it's a junit rule, which can be used without having to call
SoftAssertions
, but with the following differences: First, it's a junit rule, which can be used without having to call
assertAll()
,
example:Same as
First, it's a junit rule, which can be used without having to call
SoftAssertions
, but with the following differences: First, it's a junit rule, which can be used without having to call
assertAll()
,
example:Assertion methods for
List
s.Reusable assertions for
List
s.Utility methods related to
java.util.List
s.Assertion methods for arrays of
long
s.Reusable assertions for arrays of
long
s.Assertion methods for
Long
s.Assertions for
LongPredicate
.Reusable assertions for
Long
s.Assertions for
Map
s.Understands an entry in a
Map
.Reusable assertions for
Map
s.Utility methods related to maps.
Shameless copy from Apache commons lang and then modified to keep only the interesting stuff for AssertJ.
Formats the messages to be included in assertion errors.
Utility class for reflective method invocation.
Copy from https://code.google.com/p/java-diff-utils/.
Inverse the condition.
Returns
true
if the condition is not satisfied.Assertion methods applicable to
Number
s.Base class of reusable assertions for numbers.
Assertion methods for arrays of objects.
Reusable assertions for arrays of objects.
Assertion methods for
Object
s.Assertions methods applicable to groups of objects (e.g.
Reusable assertions for
Object
s.Utility methods related to objects.
A positive offset.
Assertions for
Optional
.Assertions for
OptionalDouble
.Build error message when an
OptionalDouble
should have a specific value close to an offset.Assertions for
OptionalInt
.Assertions for
OptionalLong
.Build error message when an
Optional
should be empty.Build error message when a value should be present in an
Optional
.Build error message when an
Optional
, OptionalDouble
, OptionalInt
or OptionalLong
should contain a specific value.Build an error message when a value should be instance of a specific class.
Copy from https://code.google.com/p/java-diff-utils/.
Assertion class for
Path
sCopy from https://code.google.com/p/java-diff-utils/.
Core assertion class for
Path
assertionsA positive percentage value.
Verifies correct argument values and state.
Assertions for
Predicate
.Encapsulate a
Predicate
description to be able to control how it is formatted in error messages using a
Representation
.Extracts the values of a specified property from the elements of a given
Iterable
or array.Utility methods for properties access.
Base class of reusable assertions for real numbers (float and double).
Compares objects field/property by field/property recursively.
Controls the formatting (String representation) of types in assertion error message.
Extractor for extracting data by a method name.
Utility methods related to
Set
s.Assertion methods for arrays of
short
s.Reusable assertions for arrays of
short
s.Assertion methods for
Short
s.Reusable assertions for
Short
s.Creates an error message indicating that an assertion that verifies that
Predicate
accepts a value failed.Creates an error message indicating that an assertion that verifies that a value satisfies a
Condition
failed.Creates an error message indicating that an assertion that verifies that a
Date
is after another one failed.Creates an error message indicating that an assertion that verifies that a
Date
is after or equals to another
one
failed.Creates an error message indicating that an assertion that verifies that a
Date
is after given year failed.Creates an error message indicating that a group of elements should have been an array.
Creates an error message indicating that an assertion that verifies that a class is (or not) an annotation.
Creates an error message indicating that an assertion that verifies that a class is assignable from.
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index that
satisfies a
Condition
failed.Creates an error message indicating that an assertion that verifies that a
Object
is before another one failed.Creates an error message indicating that an assertion that verifies that a
Object
is before or equals to another one
failed.Creates an error message indicating that an assertion that verifies that a
Date
is before given year failed.Creates an error message indicating that an assertion that verifies that a
Date
is between start - end dates (inclusive
or not) failed.Creates an error message indicating that an assertion that verifies
CharSequence
is Null
,
empty or contains only whitespace.Creates an error message indicating that an assertion that verifies that a
Path
is canonical has failed.Creates an error message indicating that an assertion that verifies that a
Date
is close to another one from some delta
failed.Creates an error message indicating that an assertion that verifies a group of elements is empty failed.
Creates an
AssertionError
indicating that an assertion that verifies that two objects are equal
failed.Creates an
AssertionError
indicating that an assertion that verifies that two objects are
lenient equal by accepting fields failed.Creates an error message indicating that an assertion that verifies that two
CharSequence
s are equal, ignoring case
considerations, failed.Creates an error message indicating that an assertion that verifies that two
ZonedDateTime
have same year,
month, and day fields failed.Creates an error message indicating that an assertion that verifies that two
ZonedDateTime
have same year,
month, day and hour fields failed.Creates an error message indicating that an assertion that verifies that :
two
ZonedDateTime
, LocalDateTime
have same year, month, day, hour, minute and second failed.
two LocalTime
have same hour, minute and second failed.
two OffsetTime
have same hour, minute and second failed.
Creates an error message indicating that an assertion that verifies that two
ZonedDateTime
have same year,
month, day, hour and minute failed.Creates an error message indicating that an assertion that verifies that two
OffsetTime
have same
time fields except the timezone.Creates an error message indicating that an assertion that verifies that two
CharSequence
s are equal, ignoring whitespace
differences, failed.Creates an error message indicating that an assertion that verifies that two
CharSequence
s are equal,
after the whitespace of both strings has been normalized, failed.Creates an
AssertionError
indicating that an assertion that verifies that two objects are lenient equal by
ignoring fields failed.Creates an error message indicating that an assertion that verifies that two numbers are equal within a positive offset failed.
Creates an error message indicating that an assertion that
verifies that two numbers are equal within a positive percentage failed.
Creates an
AssertionError
indicating that an assertion that verifies that two dates are equals
up to a given precision failed.Creates an error message indicating that an assertion that verifies that an object is exactly an instance of some
type failed.
Creates an error message indicating that an assertion that verifies that a
File
is executable
failed.Creates an error message indicating that an assertion that verifies that a
File
is an existing file
failed.Creates an error message indicating that an assertion that verifies that a value is greater than another one failed.
Creates an error message indicating that an assertion that verifies that a value is greater than or equal to another one
failed.
Creates an error message indicating that an assertion that verifies that a value is in a group of values (e.g.
Creates an error message indicating that an assertion that verifies that a
Date
is in same year, month and day of month
as another one failed.Creates an error message indicating that an assertion that verifies that a
Date
is in same year, month, day of month
and hour as another one failed.Creates an error message indicating that an assertion that verifies that a
Date
is in same hour window as
another one failed.Creates an error message indicating that an assertion that verifies that a
Date
is in same year, month, day of month,
hour and minute as another one failed.Creates an error message indicating that an assertion that verifies that a
Date
is in minute window as
another one failed.Creates an error message indicating that an assertion that verifies that a
Date
is in same year and month as another
one failed.Creates an error message indicating that an assertion that verifies that a
Date
is in same year, month, day
of month, hour, minute and second as another one failed.Creates an error message indicating that an assertion that verifies that a
Date
is in second window as
another one failed.Creates an error message indicating that an assertion that verifies that a
Date
is in same year as another one failed.Creates an error message indicating that an assertion that verifies that an object is an instance of some type
failed.
Creates an error message indicating that an assertion that verifies that an object is an instance of one or more
types failed.
Creates an error message indicating that an assertion that verifies that a class is (or not) an interface.
Creates an error message indicating that an assertion that verifies that a
Date
is in the future failed.Creates an error message indicating that an assertion that verifies that a
Date
is in the past failed.Creates an error message indicating that an assertion that verifies that a value is less than another one failed.
Creates an error message indicating that an assertion that verifies that a value is less than or equal to another one failed.
Creates an error message that indicates an assertion that verifies that a character is lowercase failed.
Assertion error message delivered when a
Path
is not normalizedCreates an error message indicating that an assertion that verifies a group of elements is
null
or empty failed.Creates an error message indicating that an assertion that verifies that an object is of type in group of types failed.
Creates an error message indicating that an assertion that verifies that a
Path
is a regular file has failed.Creates an error message indicating that an assertion that verifies that two object refer to same object failed.
Creates an error message indicating that an assertion that verifies a group of elements is sorted failed.
A group of elements can be a collection or an array.
A group of elements can be a collection or an array.
Creates an error message indicating that an assertion that verifies that an
Iterable
is a subset of an other set
Iterable
failed.Creates an error message indicating that an assertion that verifies that a
Path
is a regular file has failed.Creates an error message indicating that an assertion that verifies that a
Date
is today (matching only year, month and
day but not hours).Creates an error message that indicates an assertion that verifies that a character is uppercase failed.
Creates an error message indicating that an assertion that verifies that a
File
is writable
failed.Creates an error message indicating that an assertion that verifies a group of elements contains a given set of values failed.
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index
failed.
Creates an error message indicating that an assertion that verifies that a
CharSequence
contains another
CharSequence
failed.Creates an error message indicating that an assertion that verifies that a
CharSequence
contains another CharSequence
only
once failed.Creates an error message indicating that an assertion that verifies that a
CharSequence
contains a sequence of
several CharSequence
s in order failed.Creates an error message indicating that an assertion that verifies a map contains an entry..
Creates an error message indicating that an assertion that verifies a group of elements contains exactly a given set
of values and nothing else failed, exactly meaning same elements in same order.
Creates an error message indicating that an assertion that verifies a group of elements contains exactly a given set
of values and nothing else failed.
Creates an error message indicating that an assertion that verifies a map contains a key..
Creates an error message indicating that an assertion that verifies a map contains a key..
Creates an error message indicating that an assertion that verifies a group of elements contains a null element failed.
Creates an error message indicating that an assertion that verifies a group of elements contains only a given set of
values and
nothing else failed.
Creates an error message indicating that an assertion that verifies a CharSequence contains only digits failed.
Creates an error message indicating that an assertion that verifies map contains only a given set of keys and
nothing else failed.
Creates an error message indicating that an assertion that verifies that a
CharSequence
contains a pattern failed.Creates an error message indicating that an assertion that verifies that a group of elements contains a sequence of values
failed.
Creates an error message indicating that an assertion that verifies a group of elements contains only a given set of
values and nothing else failed.
Creates an error message indicating that an assertion that verifies that a group of elements contains a subsequence
of values failed.
Creates an error message indicating that an assertion that verifies a map contains a value.
Creates an error message indicating that an assertion that verifies a map contains a values.
Creates an error message indicating that an assertion that verifies that a group of elements ends with a given value or
sequence of values failed.
Creates an error message indicating that an assertion that verifies that a value satisfies a
Condition
failed.Creates an error message indicating that an assertion that verifies that a class have an annotation.
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given
index that satisfies a
Condition
failed.Creates an error message indicating that a group does not have an element of the given type.
Creates an error message indicating that an assertion that verifies that a file/path has a given binary content failed.
Creates an error message indicating that an assertion that verifies that a
Throwable
have a cause
exactly instance of a certain type.Creates an error message indicating that an assertion that verifies that a
Throwable
have a cause instance of
a certain type.Creates an error message indicating that an assertion that verifies that a file/path has a given text content failed.
Creates an error message indicating that an assertion that verifies that a
Date
has a year, month, day, ...Creates an error message indicating that a
File
should have extension.Creates an error message indicating that an assertion that verifies that a class have field.
Creates an error message indicating that an assertion that verifies that a value have certain number of lines failed.
Creates an error message indicating that an assertion that verifies that a
Throwable
have certain message failed.Creates an error message indicating that an assertion that verifies that a
CharSequence
matches given regular
expression.Creates an error message indicating that an assertion that verifies that a class have methods.
Creates an error message indicating that a
File
should have name.Creates an error message indicating that an assertion that verifies that an
Throwable
has no cause failed.Creates an
AssertionError
indicating that an assertion that verifies that an object
has no null fields failed.Creates an error message when a
File
should not have a parent.Creates an error message indicating that an assertion that verifies that a
Throwable
has no suppressed exceptions failed.Creates an error message indicating that a group does not have an element of the given type.
Creates an error message indicating that a
File
should have a parent.Creates an error message indicating that an assertion that verifies that a class has a given field/property.
Creates an error message indicating that an assertion that verifies that a class has a field/property with a value.
Creates an error message indicating that an assertion that verifies that a
Throwable
have a root cause
exactly instance of a certain type.Creates an error message indicating that an assertion that verifies that a
Throwable
have a root cause
instance of a certain type.Creates an error message indicating that an assertion that verifies that an object have same class as another instance failed.
Creates an error message indicating that an assertion that verifies that two files/inputStreams/paths have same content failed.
Creates an error message indicating that an assertion that verifies that two
ZonedDateTime
have same year,
month, day and hour fields failed.Creates an error message indicating that an assertion that verifies that a value have certain size failed.
Creates an error message indicating that an assertion that verifies that a date has same time as other date.
Creates an error message indicating that an assertion that verifies that a value have certain size failed.
Creates an error message indicating that an assertion that verifies that a
Throwable
has a given suppressed exception failed.Creates an error message indicating that an assertion that verifies that a date have a certain timestamp.
Creates an error message indicating that an assertion that verifies that a value satisfies a
Predicate
failed.Creates an error message indicating that an assertion that verifies that a
CharSequence
matches a pattern failed.Creates an error message indicating that an assertion that verifies that
Predicate
not accepting a value failed.Creates an error message indicating that an assertion that verifies that a value does not satisfy a
Condition
failed.Creates an error message indicating that an assertion that verifies that a
Date
is not between start - end dates
(inclusive or not) failed.Creates an error message indicating that an assertion that verifies
CharSequence
is not Null
, not empty or contains not only whitespace.Creates an error message indicating that an assertion that verifies a group of elements is not empty failed.
Creates an error message indicating that an assertion that verifies that two objects are not equal failed.
Creates an error message indicating that an assertion that verifies that two
CharSequence
s are not equal,
ignoring case
considerations, failed.Creates an error message indicating that an assertion that verifies that two
CharSequence
s are not equal,
ignoring whitespace differences, failed.Creates an error message indicating that an assertion that verifies that two
CharSequence
s are not equal,
after the whitespace of both strings has been normalized, failed.Creates an error message indicating that an assertion that verifies that two numbers are not equal within a positive offset failed.
Creates an error message indicating that an assertion that
verifies that two numbers are not equal within a positive percentage failed.
Creates an error message indicating that an assertion that verifies that an object is not exactly an instance of some type
failed.
Creates an error message indicating that an assertion that verifies that a value is not in a group of values (e.g.
Creates an error message indicating that an assertion that verifies that an object is not an instance of some type failed.
Creates an error message indicating that an assertion that verifies that an object is not an instance of one or more types
failed.
Creates an error message that indicates an assertion that verifies that an object is not
null
failed.Creates an error message indicating that an assertion that verifies that an object is not of type in group of types failed.
Creates an error message indicating an assertion that verifies that two objects do not refer to the same object failed.
Creates an error message indicating that an assertion that verifies a group of elements does not contain a given set of values
failed.
Creates an error message indicating that an assertion that verifies a group of elements does not contain a value at a given
index failed.
Creates an error message indicating that an assertion that verifies that a
CharSequence
does not contain another
CharSequence
failed.Creates an error message indicating that an assertion that verifies a map does not contains a key failed.
Creates an error message indicating that an assertion that verifies a map does not contain keys.
Creates an error message indicating that an assertion that verifies a group of elements does not contain null elements failed.
Creates an error message indicating that an assertion that verifies that a
CharSequence
does not contain
a regular expression failed.Creates an error message indicating that an assertion that verifies that a group of elements does not contain a
sequence of values failed.
Creates an error message indicating that an assertion that verifies that a group of elements does not contains a
subsequence of values failed.
Creates an error message indicating that an assertion that verifies a map does not contains a value.
Creates an error message indicating that an assertion that verifies that a group of elements does not end with a
given value or sequence of values failed.
Creates an error message indicating that an assertion that verifies that a value does not satisfy a
Condition
failed.Creates an error message indicating that an assertion that verifies a group of elements is does not have duplicates failed.
Creates an error message indicating that an assertion that verifies that an object has same class as another instance failed.
Creates an error message indicating that an assertion that verifies that a value not satisfying a
Predicate
failed.Creates an error message indicating that an assertion that verifies that a
CharSequence
does not match a pattern failed.Creates an error message indicating that an assertion that verifies that a group of elements does not start with a
given value or sequence of values failed.
Creates an error message indicating that an assertion that verifies a group of elements contains elements that
are not an instance of one of the given types.
Creates an error message indicating that an assertion that verifies that a class has only the fields.
Creates an error message indicating that an assertion that verifies that a group of elements starts with a given value or
sequence of values failed.
Copy from https://code.google.com/p/java-diff-utils/.
Concrete assertions for
Class
s without any final methods to allow proxying.An AssertionError that contains the error messages of the one or more AssertionErrors that caused this exception to
be thrown.
Concrete assertions for
Iterable
s without any final methods to allow proxying.Concrete assertions for
List
s without any final methods to allow proxying.Concrete assertions for
Map
s without any final methods to allow proxying.Concrete assertions for
Predicate
s without any final methods to allow proxying.
Suppose we have a test case and in it we'd like to make numerous assertions.
Implements
ComparisonStrategy
contract with a comparison strategy based on
Objects.areEqual(Object, Object)
method, it is also based on Comparable.compareTo(Object)
when Object
are Comparable
method.Standard java object representation.
Assertion methods for
String
s.Reusable assertions for
CharSequence
s.Utility methods related to
String
s.Knows how to join
String
s using a given delimiter.Knows how to append a given
String
to the given target, only if the target does not end with the given
String
to append.Temporal
offset.TemporalUnitOffset
with strict less than condition.Base class for
TemporalOffset
on basis of TemporalUnit
.TemporalUnitOffset
with less than or equal condition.A text-based description.
Assertion methods for
Throwable
s.Assertion methods for
Throwable
similar to ThrowableAssert
but with assertions methods named
differently to make testing code fluent (ex : withMessage
instead of hasMessage
.Reusable assertions for
Throwable
s.Utility methods related to
Throwable
s.Assertion class checking
Throwable
type.Function converting an element to another element.
Extracts
Object.toString()
from any objectAn internal holder of the comparators for type.
Unicode object representation instead of standard java representation.
Assertion class for
URI
sAssertion class for
URL
sUtility methods related to URLs.
Indicates that the visibility of a type or member has been relaxed to make the code testable.
A unified entry point to all non-deprecated assertions from both the new Java 8 core API and the pre-Java 8 core API.
Writable information about an assertion.
Format an XML String with indent = 2 space.
Assertions for
ZonedDateTime
type from new Date & Time API introduced in Java 8.