Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.api.filter | |
org.assertj.core.condition | |
org.assertj.core.error | |
org.assertj.core.internal |
Modifier and Type | Class and Description |
---|---|
class |
HamcrestCondition<T>
Allows to use a Hamcrest matcher as a condition.
|
Modifier and Type | Method and Description |
---|---|
default <T> Condition<T> |
WithAssertions.allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
Assertions.allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
AssertionsForClassTypes.allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
Java6Assertions.allOf(Condition<? super T>... conditions)
Creates a new
|
default <T> Condition<T> |
WithAssertions.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
Assertions.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
AssertionsForClassTypes.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
Java6Assertions.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
default <T> Condition<T> |
WithAssertions.anyOf(Condition<? super T>... conditions)
Only delegate to
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer). |
static <T> Condition<T> |
Assertions.anyOf(Condition<? super T>... conditions)
Only delegate to
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer). |
static <T> Condition<T> |
AssertionsForClassTypes.anyOf(Condition<? super T>... conditions)
Only delegate to
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer). |
static <T> Condition<T> |
Java6Assertions.anyOf(Condition<? super T>... conditions)
Only delegate to
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer). |
default <T> Condition<T> |
WithAssertions.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
Assertions.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
AssertionsForClassTypes.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
Java6Assertions.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
Condition<T> |
Condition.as(Description newDescription)
Sets the description of the assertion that is going to be called after.
|
Condition<T> |
Condition.as(String newDescription,
Object... args)
Sets the description of the assertion that is going to be called after.
|
Condition<T> |
Condition.describedAs(Description newDescription)
Sets the description of the assertion that is going to be called after.
|
Condition<T> |
Condition.describedAs(String newDescription,
Object... args)
Sets the description of the assertion that is going to be called after.
|
Modifier and Type | Method and Description |
---|---|
default <T> Condition<T> |
WithAssertions.allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
Assertions.allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
AssertionsForClassTypes.allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
Java6Assertions.allOf(Condition<? super T>... conditions)
Creates a new
|
default <T> Condition<T> |
WithAssertions.anyOf(Condition<? super T>... conditions)
Only delegate to
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer). |
static <T> Condition<T> |
Assertions.anyOf(Condition<? super T>... conditions)
Only delegate to
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer). |
static <T> Condition<T> |
AssertionsForClassTypes.anyOf(Condition<? super T>... conditions)
Only delegate to
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer). |
static <T> Condition<T> |
Java6Assertions.anyOf(Condition<? super T>... conditions)
Only delegate to
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer). |
SELF |
AbstractIterableAssert.are(Condition<? super ELEMENT> condition)
Verifies that each element value satisfies the given condition.
|
SELF |
AbstractObjectArrayAssert.are(Condition<? super ELEMENT> condition)
Verifies that each element value satisfies the given condition
|
SELF |
ObjectEnumerableAssert.are(Condition<? super ELEMENT> condition)
Verifies that each element value satisfies the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.are(Condition<? super T> condition)
Verifies that each element value satisfies the given condition
|
SELF |
AbstractIterableAssert.areAtLeast(int times,
Condition<? super ELEMENT> condition)
Verifies that there are at least n elements in the actual group satisfying the given condition.
|
SELF |
AbstractObjectArrayAssert.areAtLeast(int times,
Condition<? super ELEMENT> condition)
Verifies that there are at least n elements in the actual group satisfying the given condition.
|
SELF |
ObjectEnumerableAssert.areAtLeast(int n,
Condition<? super ELEMENT> condition)
Verifies that there are at least n elements in the actual group satisfying the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.areAtLeast(int times,
Condition<? super T> condition)
Verifies that there are at least n elements in the actual AtomicReferenceArray satisfying the given condition.
|
SELF |
AbstractIterableAssert.areAtLeastOne(Condition<? super ELEMENT> condition)
Verifies that there is at least one element in the actual group satisfying the given condition.
|
SELF |
AbstractObjectArrayAssert.areAtLeastOne(Condition<? super ELEMENT> condition)
Verifies that there is at least one element in the actual array satisfying the given condition.
|
SELF |
ObjectEnumerableAssert.areAtLeastOne(Condition<? super ELEMENT> condition)
Verifies that there is at least one element in the actual group satisfying the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.areAtLeastOne(Condition<? super T> condition)
Verifies that there is at least one element in the actual AtomicReferenceArray satisfying the given condition.
|
SELF |
AbstractIterableAssert.areAtMost(int times,
Condition<? super ELEMENT> condition)
Verifies that there are at most n elements in the actual group satisfying the given condition.
|
SELF |
AbstractObjectArrayAssert.areAtMost(int times,
Condition<? super ELEMENT> condition)
Verifies that there are at most n elements in the actual group satisfying the given condition.
|
SELF |
ObjectEnumerableAssert.areAtMost(int n,
Condition<? super ELEMENT> condition)
Verifies that there are at most n elements in the actual group satisfying the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.areAtMost(int times,
Condition<? super T> condition)
Verifies that there are at most n elements in the actual AtomicReferenceArray satisfying the given condition.
|
SELF |
AbstractIterableAssert.areExactly(int times,
Condition<? super ELEMENT> condition)
Verifies that there are exactly n elements in the actual group satisfying the given condition.
|
SELF |
AbstractObjectArrayAssert.areExactly(int times,
Condition<? super ELEMENT> condition)
Verifies that there are exactly n elements in the actual group satisfying the given condition.
|
SELF |
ObjectEnumerableAssert.areExactly(int n,
Condition<? super ELEMENT> condition)
Verifies that there are exactly n elements in the actual group satisfying the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.areExactly(int times,
Condition<? super T> condition)
Verifies that there are exactly n elements in the actual AtomicReferenceArray satisfying the given condition.
|
SELF |
AbstractIterableAssert.areNot(Condition<? super ELEMENT> condition)
Verifies that each element value does not satisfy the given condition.
|
SELF |
AbstractObjectArrayAssert.areNot(Condition<? super ELEMENT> condition)
Verifies that each element value does not satisfy the given condition
|
SELF |
ObjectEnumerableAssert.areNot(Condition<? super ELEMENT> condition)
Verifies that each element value does not satisfy the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.areNot(Condition<? super T> condition)
Verifies that each element value does not satisfy the given condition
|
SELF |
AbstractIterableAssert.doesNotHave(Condition<? super ACTUAL> condition) |
SELF |
AbstractAssert.doesNotHave(Condition<? super ACTUAL> condition)
Verifies that the actual value does not satisfy the given condition.
|
SELF |
AbstractListAssert.doesNotHave(Condition<? super ACTUAL> condition) |
SELF |
ExtensionPoints.doesNotHave(Condition<? super ACTUAL> condition)
Verifies that the actual value does not satisfy the given condition.
|
SELF |
AbstractMapAssert.doesNotHave(Condition<? super ACTUAL> condition) |
default <T> DoesNotHave<T> |
WithAssertions.doesNotHave(Condition<? super T> condition)
Creates a new
. |
static <T> DoesNotHave<T> |
Assertions.doesNotHave(Condition<? super T> condition)
Creates a new
. |
static <T> DoesNotHave<T> |
AssertionsForClassTypes.doesNotHave(Condition<? super T> condition)
Creates a new
. |
static <T> DoesNotHave<T> |
Java6Assertions.doesNotHave(Condition<? super T> condition)
Creates a new
. |
SELF |
AbstractIterableAssert.doNotHave(Condition<? super ELEMENT> condition)
Verifies that all elements do not satisfy the given condition.
|
SELF |
AbstractObjectArrayAssert.doNotHave(Condition<? super ELEMENT> condition)
Verifies that all elements don't satisfy the given condition.
|
SELF |
ObjectEnumerableAssert.doNotHave(Condition<? super ELEMENT> condition)
Verifies that all elements do not satisfy the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.doNotHave(Condition<? super T> condition)
Verifies that all elements don't satisfy the given condition.
|
SELF |
AbstractIterableAssert.filteredOn(Condition<? super ELEMENT> condition)
Filter the iterable under test keeping only elements matching the given
Condition . |
SELF |
AbstractObjectArrayAssert.filteredOn(Condition<? super ELEMENT> condition)
Filter the array under test into a list composed of the elements matching the given
Condition ,
allowing to perform assertions on the filtered list. |
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.filteredOn(Condition<? super T> condition)
Filter the array under test keeping only elements matching the given
Condition . |
SELF |
AbstractIterableAssert.has(Condition<? super ACTUAL> condition) |
SELF |
AbstractAssert.has(Condition<? super ACTUAL> condition)
Verifies that the actual value satisfies the given condition.
|
SELF |
AbstractListAssert.has(Condition<? super ACTUAL> condition) |
SELF |
ExtensionPoints.has(Condition<? super ACTUAL> condition)
Verifies that the actual value satisfies the given condition.
|
SELF |
AbstractMapAssert.has(Condition<? super ACTUAL> condition) |
SELF |
AbstractListAssert.has(Condition<? super ELEMENT> condition,
Index index)
Verifies that the actual object at the given index in the actual group satisfies the given condition.
|
SELF |
AbstractMapAssert.hasEntrySatisfying(Condition<? super K> keyCondition,
Condition<? super V> valueCondition)
Verifies that the actual map contains an entry with a key satisfying the given
keyCondition
and a value satisfying the given valueCondition . |
SELF |
AbstractMapAssert.hasEntrySatisfying(Condition<? super K> keyCondition,
Condition<? super V> valueCondition)
Verifies that the actual map contains an entry with a key satisfying the given
keyCondition
and a value satisfying the given valueCondition . |
SELF |
AbstractMapAssert.hasEntrySatisfying(Condition<? super Map.Entry<K,V>> entryCondition)
Verifies that the actual map contains an entry satisfying the given
entryCondition . |
SELF |
AbstractMapAssert.hasEntrySatisfying(K key,
Condition<? super V> valueCondition)
Verifies that the actual map contains a value for the given
key that satisfies the given valueCondition . |
SELF |
AbstractMapAssert.hasKeySatisfying(Condition<? super K> keyCondition)
Verifies that the actual map contains an entry with a key satisfying the given
keyCondition . |
SELF |
AbstractMapAssert.hasValueSatisfying(Condition<? super V> valueCondition)
Verifies that the actual map contains an entry with a value satisfying the given
valueCondition . |
SELF |
AbstractOptionalAssert.hasValueSatisfying(Condition<? super VALUE> condition)
|
SELF |
AbstractIterableAssert.have(Condition<? super ELEMENT> condition)
Verifies that all elements satisfy the given condition.
|
SELF |
AbstractObjectArrayAssert.have(Condition<? super ELEMENT> condition)
Verifies that all elements satisfy the given condition.
|
SELF |
ObjectEnumerableAssert.have(Condition<? super ELEMENT> condition)
Verifies that all elements satisfy the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.have(Condition<? super T> condition)
Verifies that all elements satisfy the given condition.
|
SELF |
AbstractIterableAssert.haveAtLeast(int times,
Condition<? super ELEMENT> condition)
Verifies that there are at least n elements in the actual group satisfying the given condition.
|
SELF |
AbstractObjectArrayAssert.haveAtLeast(int times,
Condition<? super ELEMENT> condition)
Verifies that there are at least n elements in the actual group satisfying the given condition.
|
SELF |
ObjectEnumerableAssert.haveAtLeast(int n,
Condition<? super ELEMENT> condition)
Verifies that there are at least n elements in the actual group satisfying the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.haveAtLeast(int times,
Condition<? super T> condition)
Verifies that there are at least n elements in the actual AtomicReferenceArray satisfying the given condition.
|
SELF |
AbstractIterableAssert.haveAtLeastOne(Condition<? super ELEMENT> condition)
Verifies that there is at least one element in the actual group satisfying the given condition.
|
SELF |
AbstractObjectArrayAssert.haveAtLeastOne(Condition<? super ELEMENT> condition)
Verifies that there is at least one element in the actual group satisfying the given condition.
|
SELF |
ObjectEnumerableAssert.haveAtLeastOne(Condition<? super ELEMENT> condition)
Verifies that there is at least one element in the actual group satisfying the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.haveAtLeastOne(Condition<? super T> condition)
Verifies that there is at least one element in the actual AtomicReferenceArray satisfying the given condition.
|
SELF |
AbstractIterableAssert.haveAtMost(int times,
Condition<? super ELEMENT> condition)
Verifies that there are at most n elements in the actual group satisfying the given condition.
|
SELF |
AbstractObjectArrayAssert.haveAtMost(int times,
Condition<? super ELEMENT> condition)
Verifies that there are at most n elements in the actual group satisfying the given condition.
|
SELF |
ObjectEnumerableAssert.haveAtMost(int n,
Condition<? super ELEMENT> condition)
Verifies that there are at most n elements in the actual group satisfying the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.haveAtMost(int times,
Condition<? super T> condition)
Verifies that there are at most n elements in the actual AtomicReferenceArray satisfying the given condition.
|
SELF |
AbstractIterableAssert.haveExactly(int times,
Condition<? super ELEMENT> condition)
Verifies that there are exactly n elements in the actual group satisfying the given condition.
|
SELF |
AbstractObjectArrayAssert.haveExactly(int times,
Condition<? super ELEMENT> condition)
Verifies that there are exactly n elements in the actual group satisfying the given condition.
|
SELF |
ObjectEnumerableAssert.haveExactly(int n,
Condition<? super ELEMENT> condition)
Verifies that there are exactly n elements in the actual group satisfying the given condition.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.haveExactly(int times,
Condition<? super T> condition)
Verifies that there are exactly n elements in the actual AtomicReferenceArray satisfying the given condition.
|
SELF |
AbstractIterableAssert.is(Condition<? super ACTUAL> condition) |
SELF |
AbstractAssert.is(Condition<? super ACTUAL> condition)
Verifies that the actual value satisfies the given condition.
|
SELF |
AbstractListAssert.is(Condition<? super ACTUAL> condition) |
SELF |
ExtensionPoints.is(Condition<? super ACTUAL> condition)
Verifies that the actual value satisfies the given condition.
|
SELF |
AbstractMapAssert.is(Condition<? super ACTUAL> condition) |
SELF |
AbstractListAssert.is(Condition<? super ELEMENT> condition,
Index index)
Verifies that the actual object at the given index in the actual group satisfies the given condition.
|
SELF |
AbstractIterableAssert.isNot(Condition<? super ACTUAL> condition) |
SELF |
AbstractAssert.isNot(Condition<? super ACTUAL> condition)
Verifies that the actual value does not satisfy the given condition.
|
SELF |
AbstractListAssert.isNot(Condition<? super ACTUAL> condition) |
SELF |
ExtensionPoints.isNot(Condition<? super ACTUAL> condition)
Verifies that the actual value does not satisfy the given condition.
|
SELF |
AbstractMapAssert.isNot(Condition<? super ACTUAL> condition) |
default <T> Not<T> |
WithAssertions.not(Condition<? super T> condition)
Creates a new
. |
static <T> Not<T> |
Assertions.not(Condition<? super T> condition)
Creates a new
. |
static <T> Not<T> |
AssertionsForClassTypes.not(Condition<? super T> condition)
Creates a new
. |
static <T> Not<T> |
Java6Assertions.not(Condition<? super T> condition)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
default <T> Condition<T> |
WithAssertions.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
Assertions.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
AssertionsForClassTypes.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
Java6Assertions.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
default <T> Condition<T> |
WithAssertions.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
Assertions.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
AssertionsForClassTypes.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
Java6Assertions.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
Modifier and Type | Method and Description |
---|---|
Filters<E> |
Filters.being(Condition<? super E> condition)
Filter the underlying group, keeping only elements satisfying the given
Condition .Same as Filters.having(Condition) - pick the method you prefer to have the most readable code. |
Filters<E> |
Filters.having(Condition<? super E> condition)
Filter the underlying group, keeping only elements satisfying the given
Condition .Same as Filters.being(Condition) - pick the method you prefer to have the most readable code. |
Modifier and Type | Class and Description |
---|---|
class |
AllOf<T>
Returns
true if all of the joined conditions is satisfied. |
class |
AnyOf<T>
Returns
true if any of the joined conditions is satisfied. |
class |
DoesNotHave<T>
Returns
true if the condition is not satisfied. |
class |
Join<T>
Join of two or more
s. |
class |
Negative<T>
Inverse the condition.
|
class |
Not<T>
Returns
true if the condition is not satisfied. |
Modifier and Type | Method and Description |
---|---|
static <T> Condition<T> |
AllOf.allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
AllOf.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
AnyOf.anyOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
AnyOf.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
Modifier and Type | Method and Description |
---|---|
protected Collection<Condition<? super T>> |
Join.conditions()
Returns the conditions to join.
|
Modifier and Type | Method and Description |
---|---|
static <T> Condition<T> |
AllOf.allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
AnyOf.anyOf(Condition<? super T>... conditions)
Creates a new
|
static <T> DoesNotHave<T> |
DoesNotHave.doesNotHave(Condition<? super T> condition)
Creates a new
. |
static <T> Not<T> |
Not.not(Condition<? super T> condition)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
static <T> Condition<T> |
AllOf.allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
static <T> Condition<T> |
AnyOf.anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
Constructor and Description |
---|
Join(Condition<? super T>... conditions)
Creates a new
. |
Negative(Condition<? super T> condition) |
Constructor and Description |
---|
Join(Iterable<? extends Condition<? super T>> conditions)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
ElementsShouldBe.elementsShouldBe(Object actual,
Object notSatisfies,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldBeAtLeast.elementsShouldBeAtLeast(Object actual,
int times,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldBeAtMost.elementsShouldBeAtMost(Object actual,
int times,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldBeExactly.elementsShouldBeExactly(Object actual,
int times,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldHave.elementsShouldHave(Object actual,
Object notSatisfies,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldHaveAtLeast.elementsShouldHaveAtLeast(Object actual,
int times,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldHaveAtMost.elementsShouldHaveAtMost(Object actual,
int times,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldHaveExactly.elementsShouldHaveExactly(Object actual,
int times,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldNotBe.elementsShouldNotBe(Object actual,
Object satisfies,
Condition<?> condition)
Creates a new
. |
static ErrorMessageFactory |
ElementsShouldNotHave.elementsShouldNotHave(Object actual,
Object notSatisfies,
Condition<?> condition)
Creates a new
. |
static <T> ErrorMessageFactory |
ShouldBe.shouldBe(T actual,
Condition<? super T> condition)
Creates a new
. |
static <T> ErrorMessageFactory |
ShouldBeAtIndex.shouldBeAtIndex(List<? extends T> actual,
Condition<? super T> condition,
Index index,
T found)
Creates a new
. |
static ErrorMessageFactory |
ConditionAndGroupGenericParameterTypeShouldBeTheSame.shouldBeSameGenericBetweenIterableAndCondition(Object actual,
Condition<?> condition)
Creates a new
|
static <K,V> ErrorMessageFactory |
ShouldContainEntry.shouldContainEntry(Map<K,V> actual,
Condition<?> entryCondition)
Creates a new
. |
static <K,V> ErrorMessageFactory |
ShouldContainEntry.shouldContainEntry(Map<K,V> actual,
Condition<? super K> keyCondition,
Condition<? super V> valueCondition)
Creates a new
. |
static <K,V> ErrorMessageFactory |
ShouldContainEntry.shouldContainEntry(Map<K,V> actual,
Condition<? super K> keyCondition,
Condition<? super V> valueCondition)
Creates a new
. |
static ErrorMessageFactory |
ShouldContainKey.shouldContainKey(Object actual,
Condition<?> keyCondition)
Creates a new
. |
static ErrorMessageFactory |
ShouldContainValue.shouldContainValue(Object actual,
Condition<?> valueCondition)
Creates a new
. |
static <T> ErrorMessageFactory |
ShouldHave.shouldHave(T actual,
Condition<? super T> condition)
Creates a new
. |
static <T> ErrorMessageFactory |
ShouldHaveAtIndex.shouldHaveAtIndex(List<? extends T> actual,
Condition<? super T> condition,
Index index,
T found)
Creates a new
. |
static <T> ErrorMessageFactory |
ShouldNotBe.shouldNotBe(T actual,
Condition<? super T> condition)
Creates a new
. |
static <T> ErrorMessageFactory |
ShouldNotHave.shouldNotHave(T actual,
Condition<? super T> condition)
Creates a new
. |
Constructor and Description |
---|
ConditionAndGroupGenericParameterTypeShouldBeTheSame(Object actual,
Condition<?> condition) |
Modifier and Type | Method and Description |
---|---|
<E> void |
ObjectArrays.assertAre(AssertionInfo info,
E[] actual,
Condition<? super E> condition)
Assert that each element of given array satisfies the given condition.
|
<E> void |
Arrays.assertAre(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
Condition<E> condition) |
<T> void |
Iterables.assertAre(AssertionInfo info,
Iterable<? extends T> actual,
Condition<? super T> condition)
Assert that each element of given
Iterable satisfies the given condition. |
<E> void |
ObjectArrays.assertAreAtLeast(AssertionInfo info,
E[] actual,
int n,
Condition<? super E> condition)
Assert that there are at least n array elements satisfying the given condition.
|
<E> void |
Arrays.assertAreAtLeast(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
int times,
Condition<E> condition) |
<E> void |
Iterables.assertAreAtLeast(AssertionInfo info,
Iterable<? extends E> actual,
int times,
Condition<? super E> condition)
Assert that there are at least n elements in the actual
Iterable satisfying the given
condition. |
<E> void |
ObjectArrays.assertAreAtMost(AssertionInfo info,
E[] actual,
int n,
Condition<? super E> condition)
Assert that there are at most n array elements satisfying the given condition.
|
<E> void |
Arrays.assertAreAtMost(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
int times,
Condition<E> condition) |
<E> void |
Iterables.assertAreAtMost(AssertionInfo info,
Iterable<? extends E> actual,
int n,
Condition<? super E> condition)
Assert that there are at most n elements in the actual
Iterable satisfying the given
condition. |
<E> void |
ObjectArrays.assertAreExactly(AssertionInfo info,
E[] actual,
int n,
Condition<? super E> condition)
Verifies that there are exactly n array elements satisfying the given condition.
|
<E> void |
Arrays.assertAreExactly(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
int times,
Condition<E> condition) |
<E> void |
Iterables.assertAreExactly(AssertionInfo info,
Iterable<? extends E> actual,
int times,
Condition<? super E> condition)
Verifies that there are exactly n elements in the actual
Iterable satisfying the given
condition. |
<E> void |
ObjectArrays.assertAreNot(AssertionInfo info,
E[] actual,
Condition<? super E> condition)
Assert that each element of given array not satisfies the given condition.
|
<E> void |
Arrays.assertAreNot(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
Condition<E> condition) |
<E> void |
Iterables.assertAreNot(AssertionInfo info,
Iterable<? extends E> actual,
Condition<? super E> condition)
Assert that each element of given
Iterable not satisfies the given condition. |
<T> void |
Conditions.assertDoesNotHave(AssertionInfo info,
T actual,
Condition<? super T> condition)
Asserts that the actual value does not satisfy the given
. |
<E> void |
ObjectArrays.assertDoNotHave(AssertionInfo info,
E[] actual,
Condition<? super E> condition)
Assert that each element of given array not satisfies the given condition.
|
<E> void |
Iterables.assertDoNotHave(AssertionInfo info,
Iterable<? extends E> actual,
Condition<? super E> condition)
Assert that each element of given
Iterable not satisfies the given condition. |
<T> void |
Lists.assertHas(AssertionInfo info,
List<? extends T> actual,
Condition<? super T> condition,
Index index)
Verifies that the given
List satisfies the given at the given index. |
<T> void |
Conditions.assertHas(AssertionInfo info,
T actual,
Condition<? super T> condition)
Asserts that the actual value satisfies the given
. |
<K,V> void |
Maps.assertHasEntrySatisfying(AssertionInfo info,
Map<K,V> actual,
Condition<? super Map.Entry<K,V>> entryCondition)
Verifies that the given
Map contains an entry satisfying given entryCondition . |
<K,V> void |
Maps.assertHasEntrySatisfying(AssertionInfo info,
Map<K,V> actual,
K key,
Condition<? super V> valueCondition)
Verifies that the given
Map contains the value for given key that satisfy given valueCondition . |
<K,V> void |
Maps.assertHasEntrySatisfyingConditions(AssertionInfo info,
Map<K,V> actual,
Condition<? super K> keyCondition,
Condition<? super V> valueCondition)
Verifies that the given
Map contains an entry with key satisfying keyCondition
and value satisfying valueCondition . |
<K,V> void |
Maps.assertHasEntrySatisfyingConditions(AssertionInfo info,
Map<K,V> actual,
Condition<? super K> keyCondition,
Condition<? super V> valueCondition)
Verifies that the given
Map contains an entry with key satisfying keyCondition
and value satisfying valueCondition . |
<K> void |
Maps.assertHasKeySatisfying(AssertionInfo info,
Map<K,?> actual,
Condition<? super K> keyCondition)
Verifies that the given
Map contains an entry with key satisfying keyCondition . |
<V> void |
Maps.assertHasValueSatisfying(AssertionInfo info,
Map<?,V> actual,
Condition<? super V> valueCondition)
Verifies that the given
Map contains an entry with value satisfying valueCondition . |
<E> void |
ObjectArrays.assertHave(AssertionInfo info,
E[] actual,
Condition<? super E> condition)
Assert that each element of given array satisfies the given condition.
|
<E> void |
Arrays.assertHave(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
Condition<E> condition) |
<E> void |
Iterables.assertHave(AssertionInfo info,
Iterable<? extends E> actual,
Condition<? super E> condition)
Assert that each element of given
Iterable satisfies the given condition. |
<E> void |
ObjectArrays.assertHaveAtLeast(AssertionInfo info,
E[] actual,
int times,
Condition<? super E> condition)
An alias method of
ObjectArrays.assertAreAtLeast(AssertionInfo, Object[], int, Condition) to provide a richer fluent
api (same logic, only error message differs). |
<E> void |
Arrays.assertHaveAtLeast(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
int times,
Condition<E> condition) |
<E> void |
Iterables.assertHaveAtLeast(AssertionInfo info,
Iterable<? extends E> actual,
int times,
Condition<? super E> condition)
An alias method of
Iterables.assertAreAtLeast(AssertionInfo, Iterable, int, Condition) to provide a richer fluent
api (same logic, only error message differs). |
<E> void |
ObjectArrays.assertHaveAtMost(AssertionInfo info,
E[] actual,
int times,
Condition<? super E> condition)
An alias method of
ObjectArrays.assertAreAtMost(AssertionInfo, Object[], int, Condition) to provide a richer fluent api
(same logic, only error message differs). |
<E> void |
Arrays.assertHaveAtMost(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
int times,
Condition<E> condition) |
<E> void |
Iterables.assertHaveAtMost(AssertionInfo info,
Iterable<? extends E> actual,
int times,
Condition<? super E> condition)
An alias method of
Iterables.assertAreAtMost(AssertionInfo, Iterable, int, Condition) to provide a richer fluent api
(same logic, only error message differs). |
<E> void |
ObjectArrays.assertHaveExactly(AssertionInfo info,
E[] actual,
int times,
Condition<? super E> condition)
An alias method of
ObjectArrays.assertAreExactly(AssertionInfo, Object[], int, Condition) to provide a richer fluent
api (same logic, only error message differs). |
<E> void |
Arrays.assertHaveExactly(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
int times,
Condition<E> condition) |
<E> void |
Iterables.assertHaveExactly(AssertionInfo info,
Iterable<? extends E> actual,
int times,
Condition<? super E> condition)
An alias method of
Iterables.assertAreExactly(AssertionInfo, Iterable, int, Condition) to provide a richer fluent
api (same logic, only error message differs). |
<E> void |
Arrays.assertHaveNot(AssertionInfo info,
Failures failures,
Conditions conditions,
Object array,
Condition<E> condition) |
<T> void |
Lists.assertIs(AssertionInfo info,
List<? extends T> actual,
Condition<? super T> condition,
Index index)
Verifies that the given
List satisfies the given at the given index. |
<T> void |
Conditions.assertIs(AssertionInfo info,
T actual,
Condition<? super T> condition)
Asserts that the actual value satisfies the given
. |
<T> void |
Conditions.assertIsNot(AssertionInfo info,
T actual,
Condition<? super T> condition)
Asserts that the actual value does not satisfy the given
. |
void |
Conditions.assertIsNotNull(Condition<?> condition)
Asserts the the given
is not null. |
void |
Conditions.assertIsNotNull(Condition<?> condition,
String format,
Object... args)
Asserts the the given
is not null. |
Copyright © 2014–2018 AssertJ. All rights reserved.