Uses of Class
org.assertj.core.api.Condition
Packages that use Condition
Package
Description
-
Uses of Condition in org.assertj.core.api
Subclasses of Condition in org.assertj.core.apiModifier and TypeClassDescriptionclass
Allows to use a Hamcrest matcher as a condition.Methods in org.assertj.core.api that return ConditionModifier and TypeMethodDescriptionstatic <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Deprecated.Creates a newAllOf
static <T> Condition
<T> Deprecated.Creates a newAllOf
default <T> Condition
<T> Creates a newAllOf
default <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAnyOf
static <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).static <T> Condition
<T> Creates a newAnyOf
static <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).static <T> Condition
<T> Creates a newAnyOf
static <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).static <T> Condition
<T> Deprecated.Creates a newAnyOf
static <T> Condition
<T> Deprecated.Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).default <T> Condition
<T> Creates a newAnyOf
default <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).Condition.describedAs
(Description newDescription) Sets the description of the assertion that is going to be called after.Methods in org.assertj.core.api with parameters of type ConditionModifier and TypeMethodDescriptionstatic <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Deprecated.Creates a newAllOf
default <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).static <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).static <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).static <T> Condition
<T> Deprecated.Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).default <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOf
if you prefer).Verifies that each element value satisfies the given condition.Verifies that each element value satisfies the given conditionVerifies that each element value satisfies the given conditionVerifies that each element value satisfies the given condition.AbstractIterableAssert.areAtLeast
(int times, Condition<? super ELEMENT> condition) Verifies that there are at least n elements in the actual group satisfying the given condition.AbstractObjectArrayAssert.areAtLeast
(int times, Condition<? super ELEMENT> condition) Verifies that there are at least n elements in the actual array satisfying the given condition.AtomicReferenceArrayAssert.areAtLeast
(int times, Condition<? super T> condition) Verifies that there are at least n elements in the actual AtomicReferenceArray satisfying the given condition.ObjectEnumerableAssert.areAtLeast
(int n, Condition<? super ELEMENT> condition) Verifies that there are at least n elements in the actual group satisfying the given condition.AbstractIterableAssert.areAtLeastOne
(Condition<? super ELEMENT> condition) Verifies that there is at least one element in the actual group satisfying the given condition.AbstractObjectArrayAssert.areAtLeastOne
(Condition<? super ELEMENT> condition) Verifies that there is at least one element in the actual array satisfying the given condition.AtomicReferenceArrayAssert.areAtLeastOne
(Condition<? super T> condition) Verifies that there is at least one element in the actual AtomicReferenceArray satisfying the given condition.ObjectEnumerableAssert.areAtLeastOne
(Condition<? super ELEMENT> condition) Verifies that there is at least one element in the actual group satisfying the given condition.Verifies that there are at most n elements in the actual group satisfying the given condition.Verifies that there are at most n elements in the actual array satisfying the given condition.Verifies that there are at most n elements in the actual AtomicReferenceArray satisfying the given condition.Verifies that there are at most n elements in the actual group satisfying the given condition.AbstractIterableAssert.areExactly
(int times, Condition<? super ELEMENT> condition) Verifies that there are exactly n elements in the actual group satisfying the given condition.AbstractObjectArrayAssert.areExactly
(int times, Condition<? super ELEMENT> condition) Verifies that there are exactly n elements in the actual array satisfying the given condition.AtomicReferenceArrayAssert.areExactly
(int times, Condition<? super T> condition) Verifies that there are exactly n elements in the actual AtomicReferenceArray satisfying the given condition.ObjectEnumerableAssert.areExactly
(int n, Condition<? super ELEMENT> condition) Verifies that there are exactly n elements in the actual group satisfying the given condition.Verifies that each element value does not satisfy the given condition.Verifies that each element value does not satisfy the given conditionVerifies that each element value does not satisfy the given conditionVerifies that each element value does not satisfy the given condition.AbstractAssert.doesNotHave
(Condition<? super ACTUAL> condition) Verifies that the actual value does not satisfy the given condition.AbstractIterableAssert.doesNotHave
(Condition<? super ACTUAL> condition) AbstractListAssert.doesNotHave
(Condition<? super ACTUAL> condition) AbstractMapAssert.doesNotHave
(Condition<? super ACTUAL> condition) static <T> DoesNotHave
<T> Assertions.doesNotHave
(Condition<? super T> condition) Creates a new
.DoesNotHave
static <T> DoesNotHave
<T> AssertionsForClassTypes.doesNotHave
(Condition<? super T> condition) Creates a new
.DoesNotHave
static <T> DoesNotHave
<T> BDDAssertions.doesNotHave
(Condition<? super T> condition) Creates a new
.DoesNotHave
ExtensionPoints.doesNotHave
(Condition<? super ACTUAL> condition) Verifies that the actual value does not satisfy the given condition.static <T> DoesNotHave
<T> Java6Assertions.doesNotHave
(Condition<? super T> condition) Deprecated.Creates a new
.DoesNotHave
default <T> DoesNotHave
<T> WithAssertions.doesNotHave
(Condition<? super T> condition) Creates a new
.DoesNotHave
Verifies that all elements do not satisfy the given condition.Verifies that all elements don't satisfy the given condition.Verifies that all elements don't satisfy the given condition.Verifies that all elements do not satisfy the given condition.AbstractIterableAssert.filteredOn
(Condition<? super ELEMENT> condition) Filters the iterable under test keeping only elements matching the givenCondition
.AbstractObjectArrayAssert.filteredOn
(Condition<? super ELEMENT> condition) Filter the array under test into a list composed of the elements matching the givenCondition
, allowing to perform assertions on the filtered list.AtomicReferenceArrayAssert.filteredOn
(Condition<? super T> condition) Filter the array under test keeping only elements matching the givenCondition
.Verifies that the actual value satisfies the given condition.Verifies that the actual object at the given index in the actual group satisfies the given condition.Verifies that the actual value satisfies the given condition.AbstractMapAssert.hasEntrySatisfying
(K key, Condition<? super V> valueCondition) Verifies that the actual map contains a value for the givenkey
that satisfies the givenvalueCondition
.AbstractMapAssert.hasEntrySatisfying
(Condition<? super Map.Entry<K, V>> entryCondition) Verifies that the actual map contains an entry satisfying the givenentryCondition
.AbstractMapAssert.hasEntrySatisfying
(Condition<? super K> keyCondition, Condition<? super V> valueCondition) Verifies that the actual map contains an entry with a key satisfying the givenkeyCondition
and a value satisfying the givenvalueCondition
.AbstractMapAssert.hasKeySatisfying
(Condition<? super K> keyCondition) Verifies that the actual map contains an entry with a key satisfying the givenkeyCondition
.AbstractMapAssert.hasValueSatisfying
(Condition<? super V> valueCondition) Verifies that the actual map contains an entry with a value satisfying the givenvalueCondition
.AbstractOptionalAssert.hasValueSatisfying
(Condition<? super VALUE> condition) Verifies that all elements satisfy the given condition.Verifies that all elements satisfy the given condition.Verifies that all elements satisfy the given condition.Verifies that all elements satisfy the given condition.AbstractIterableAssert.haveAtLeast
(int times, Condition<? super ELEMENT> condition) Verifies that there are at least n elements in the actual group satisfying the given condition.AbstractObjectArrayAssert.haveAtLeast
(int times, Condition<? super ELEMENT> condition) Verifies that there are at least n elements in the actual array satisfying the given condition.AtomicReferenceArrayAssert.haveAtLeast
(int times, Condition<? super T> condition) Verifies that there are at least n elements in the actual AtomicReferenceArray satisfying the given condition.ObjectEnumerableAssert.haveAtLeast
(int n, Condition<? super ELEMENT> condition) Verifies that there are at least n elements in the actual group satisfying the given condition.AbstractIterableAssert.haveAtLeastOne
(Condition<? super ELEMENT> condition) Verifies that there is at least one element in the actual group satisfying the given condition.AbstractObjectArrayAssert.haveAtLeastOne
(Condition<? super ELEMENT> condition) Verifies that there is at least one element in the actual array satisfying the given condition.AtomicReferenceArrayAssert.haveAtLeastOne
(Condition<? super T> condition) Verifies that there is at least one element in the actual AtomicReferenceArray satisfying the given condition.ObjectEnumerableAssert.haveAtLeastOne
(Condition<? super ELEMENT> condition) Verifies that there is at least one element in the actual group satisfying the given condition.AbstractIterableAssert.haveAtMost
(int times, Condition<? super ELEMENT> condition) Verifies that there are at most n elements in the actual group satisfying the given condition.AbstractObjectArrayAssert.haveAtMost
(int times, Condition<? super ELEMENT> condition) Verifies that there are at most n elements in the actual array satisfying the given condition.AtomicReferenceArrayAssert.haveAtMost
(int times, Condition<? super T> condition) Verifies that there are at most n elements in the actual AtomicReferenceArray satisfying the given condition.ObjectEnumerableAssert.haveAtMost
(int n, Condition<? super ELEMENT> condition) Verifies that there are at most n elements in the actual group satisfying the given condition.AbstractIterableAssert.haveExactly
(int times, Condition<? super ELEMENT> condition) Verifies that there are exactly n elements in the actual group satisfying the given condition.AbstractObjectArrayAssert.haveExactly
(int times, Condition<? super ELEMENT> condition) Verifies that there are exactly n elements in the actual array satisfying the given condition.AtomicReferenceArrayAssert.haveExactly
(int times, Condition<? super T> condition) Verifies that there are exactly n elements in the actual AtomicReferenceArray satisfying the given condition.ObjectEnumerableAssert.haveExactly
(int n, Condition<? super ELEMENT> condition) Verifies that there are exactly n elements in the actual group satisfying the given condition.Verifies that the actual value satisfies the given condition.Verifies that the actual object at the given index in the actual group satisfies the given condition.Verifies that the actual value satisfies the given condition.Verifies that the actual value does not satisfy the given condition.Verifies that the actual value does not satisfy the given condition.static <T> Not
<T> Creates a new
.Not
static <T> Not
<T> Creates a new
.Not
static <T> Not
<T> Creates a new
.Not
static <T> Not
<T> Deprecated.Creates a new
.Not
default <T> Not
<T> Creates a new
.Not
Verifies that the actual value satisfies the given condition.Verifies that the actual value satisfies the given condition.Method parameters in org.assertj.core.api with type arguments of type ConditionModifier and TypeMethodDescriptionstatic <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Deprecated.Creates a newAllOf
default <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAnyOf
static <T> Condition
<T> Creates a newAnyOf
static <T> Condition
<T> Creates a newAnyOf
static <T> Condition
<T> Deprecated.Creates a newAnyOf
default <T> Condition
<T> Creates a newAnyOf
-
Uses of Condition in org.assertj.core.api.filter
Methods in org.assertj.core.api.filter with parameters of type ConditionModifier and TypeMethodDescriptionFilters.applyFilterCondition
(Condition<? super E> condition) Filter the underlying group, keeping only elements satisfying the givenCondition
.
Same asFilters.having(Condition)
- pick the method you prefer to have the most readable code.Filter the underlying group, keeping only elements satisfying the givenCondition
.
Same asFilters.being(Condition)
- pick the method you prefer to have the most readable code. -
Uses of Condition in org.assertj.core.condition
Subclasses of Condition in org.assertj.core.conditionModifier and TypeClassDescriptionclass
AllOf<T>
Returnstrue
if all of the joined conditions are satisfied.class
AnyOf<T>
Returnstrue
if any of the joined conditions is satisfied.class
DoesNotHave<T>
Returnstrue
if the condition is not satisfied.class
Join<T>
Join of two or more
s.Condition
class
MappedCondition<FROM,
TO> class
Negative<T>
Inverse the condition.class
NestableCondition<ACTUAL,
NESTED> Building block to define precise conditions on complex objects.class
Not<T>
Returnstrue
if the condition is not satisfied.final class
Condition
that shows the value under test when the condition fails thanks to the specifiedobjectUnderTestDescriptor
function.Fields in org.assertj.core.condition declared as ConditionFields in org.assertj.core.condition with type parameters of type ConditionModifier and TypeFieldDescription(package private) Collection
<Condition<? super T>> Join.conditions
Methods in org.assertj.core.condition that return ConditionModifier and TypeMethodDescriptionstatic <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAnyOf
static <T> Condition
<T> Creates a newAnyOf
private static <ACTUAL,
NESTED>
Condition<ACTUAL> NestableCondition.compose
(Condition<? super NESTED> condition, Function<? super ACTUAL, ? extends NESTED> extractor) static <ACTUAL,
NESTED>
Condition<ACTUAL> NestableCondition.nestable
(String descriptionPrefix, Function<? super ACTUAL, ? extends NESTED> extractor, Condition<? super NESTED>... conditions) Creates a newNestableCondition
static <ACTUAL> Condition
<ACTUAL> Creates a newNestableCondition
Methods in org.assertj.core.condition that return types with arguments of type ConditionModifier and TypeMethodDescriptionNestableCondition.compose
(Stream<? extends Condition<? super NESTED>> conditions, Function<? super ACTUAL, ? extends NESTED> extractor) final Collection
<Condition<? super T>> Join.conditions()
Returns the conditions to join.Methods in org.assertj.core.condition with parameters of type ConditionModifier and TypeMethodDescriptionstatic <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAnyOf
private static <ACTUAL,
NESTED>
Condition<ACTUAL> NestableCondition.compose
(Condition<? super NESTED> condition, Function<? super ACTUAL, ? extends NESTED> extractor) static <T> DoesNotHave
<T> DoesNotHave.doesNotHave
(Condition<? super T> condition) Creates a new
.DoesNotHave
static <FROM,
TO> MappedCondition <FROM, TO> MappedCondition.mappedCondition
(Function<FROM, TO> mapping, Condition<TO> condition) Creates a newMappedCondition
static <FROM,
TO> MappedCondition <FROM, TO> MappedCondition.mappedCondition
(Function<FROM, TO> mapping, Condition<TO> condition, String mappingDescription, Object... args) Creates a new
.MappedCondition
static <ACTUAL,
NESTED>
Condition<ACTUAL> NestableCondition.nestable
(String descriptionPrefix, Function<? super ACTUAL, ? extends NESTED> extractor, Condition<? super NESTED>... conditions) Creates a newNestableCondition
static <ACTUAL> Condition
<ACTUAL> Creates a newNestableCondition
static <T> Not
<T> Creates a new
.Not
Method parameters in org.assertj.core.condition with type arguments of type ConditionModifier and TypeMethodDescriptionstatic <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAnyOf
NestableCondition.compose
(Stream<? extends Condition<? super NESTED>> conditions, Function<? super ACTUAL, ? extends NESTED> extractor) Constructors in org.assertj.core.condition with parameters of type ConditionModifierConstructorDescriptionprivate
private
private
DoesNotHave
(Condition<? super T> condition) protected
Creates a new
.Join
private
protected
private
Constructor parameters in org.assertj.core.condition with type arguments of type ConditionModifierConstructorDescriptionprivate
private
protected
Creates a new
.Join
private
private
NestableCondition
(String descriptionPrefix, Stream<? extends Condition<? super ACTUAL>> conditions) private
NestableCondition
(String descriptionPrefix, Stream<? extends Condition<? super NESTED>> conditions, Function<? super ACTUAL, ? extends NESTED> extractor) -
Uses of Condition in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type ConditionModifier and TypeMethodDescriptionstatic ErrorMessageFactory
ElementsShouldBe.elementsShouldBe
(Object actual, Object notSatisfies, Condition<?> condition) Creates a new
.ElementsShouldBe
static ErrorMessageFactory
ElementsShouldBeAtLeast.elementsShouldBeAtLeast
(Object actual, int times, Condition<?> condition) Creates a new
.ElementsShouldBeAtLeast
static ErrorMessageFactory
ElementsShouldBeAtMost.elementsShouldBeAtMost
(Object actual, int times, Condition<?> condition) Creates a new
.ElementsShouldBeAtMost
static ErrorMessageFactory
ElementsShouldBeExactly.elementsShouldBeExactly
(Object actual, int times, Condition<?> condition) Creates a new
.ElementsShouldBeExactly
static ErrorMessageFactory
ElementsShouldHave.elementsShouldHave
(Object actual, Object notSatisfies, Condition<?> condition) Creates a new
.ElementsShouldHave
static ErrorMessageFactory
ElementsShouldHaveAtLeast.elementsShouldHaveAtLeast
(Object actual, int times, Condition<?> condition) Creates a new
.ElementsShouldHaveAtLeast
static ErrorMessageFactory
ElementsShouldHaveAtMost.elementsShouldHaveAtMost
(Object actual, int times, Condition<?> condition) Creates a new
.ElementsShouldHaveAtMost
static ErrorMessageFactory
ElementsShouldHaveExactly.elementsShouldHaveExactly
(Object actual, int times, Condition<?> condition) Creates a new
.ElementsShouldHaveExactly
static ErrorMessageFactory
ElementsShouldNotBe.elementsShouldNotBe
(Object actual, Object satisfies, Condition<?> condition) Creates a new
.ElementsShouldNotBe
static ErrorMessageFactory
ElementsShouldNotHave.elementsShouldNotHave
(Object actual, Object notSatisfies, Condition<?> condition) Creates a new
.ElementsShouldNotHave
static <T> ErrorMessageFactory
Creates a new
.ShouldBe
static <T> ErrorMessageFactory
ShouldBeAtIndex.shouldBeAtIndex
(List<? extends T> actual, Condition<? super T> condition, Index index, T found) Creates a new
.ShouldBeAtIndex
static ErrorMessageFactory
ConditionAndGroupGenericParameterTypeShouldBeTheSame.shouldBeSameGenericBetweenIterableAndCondition
(Object actual, Condition<?> condition) Creates a newConditionAndGroupGenericParameterTypeShouldBeTheSame
static <K,
V> ErrorMessageFactory ShouldContainEntry.shouldContainEntry
(Map<K, V> actual, Condition<?> entryCondition) Creates a new
.ShouldContainEntry
static <K,
V> ErrorMessageFactory ShouldContainEntry.shouldContainEntry
(Map<K, V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition) Creates a new
.ShouldContainEntry
static ErrorMessageFactory
ShouldContainKey.shouldContainKey
(Object actual, Condition<?> keyCondition) Creates a new
.ShouldContainKey
static ErrorMessageFactory
ShouldContainValue.shouldContainValue
(Object actual, Condition<?> valueCondition) Creates a new
.ShouldContainValue
static <T> ErrorMessageFactory
ShouldHave.shouldHave
(T actual, Condition<? super T> condition) Creates a new
.ShouldHave
static <T> ErrorMessageFactory
ShouldHaveAtIndex.shouldHaveAtIndex
(List<? extends T> actual, Condition<? super T> condition, Index index, T found) Creates a new
.ShouldHaveAtIndex
static <T> ErrorMessageFactory
ShouldNotBe.shouldNotBe
(T actual, Condition<? super T> condition) Creates a new
.ShouldNotBe
static <T> ErrorMessageFactory
ShouldNotHave.shouldNotHave
(T actual, Condition<? super T> condition) Creates a new
.ShouldNotHave
static <T> ErrorMessageFactory
ShouldSatisfy.shouldSatisfy
(T actual, Condition<? super T> condition) Constructors in org.assertj.core.error with parameters of type ConditionModifierConstructorDescriptionConditionAndGroupGenericParameterTypeShouldBeTheSame
(Object actual, Condition<?> condition) private
ElementsShouldBe
(Object actual, Object notSatisfies, Condition<?> condition) private
ElementsShouldBeAtLeast
(Object actual, int times, Condition<?> condition) private
ElementsShouldBeAtMost
(Object actual, int times, Condition<?> condition) private
ElementsShouldBeExactly
(Object actual, int times, Condition<?> condition) private
ElementsShouldHave
(Object actual, Object notSatisfies, Condition<?> condition) private
ElementsShouldHaveAtLeast
(Object actual, int times, Condition<?> condition) private
ElementsShouldHaveAtMost
(Object actual, int times, Condition<?> condition) private
ElementsShouldHaveExactly
(Object actual, int times, Condition<?> condition) private
ElementsShouldNotBe
(Object actual, Object satisfies, Condition<?> condition) private
ElementsShouldNotHave
(Object actual, Object notSatisfies, Condition<?> condition) private
private
ShouldBeAtIndex
(List<? extends T> actual, Condition<? super T> condition, Index index, T found) private
ShouldContainEntry
(Map<K, V> actual, Condition<?> entryCondition) private
ShouldContainEntry
(Map<K, V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition) private
ShouldContainKey
(Object actual, Condition<?> keyCondition) private
ShouldContainValue
(Object actual, Condition<?> valueCondition) private
ShouldHave
(Object actual, Condition<?> condition) private
ShouldHaveAtIndex
(List<? extends T> actual, Condition<? super T> condition, Index index, T found) private
ShouldNotBe
(Object actual, Condition<?> condition) private
ShouldNotHave
(Object actual, Condition<?> condition) private
ShouldSatisfy
(Object actual, Condition<?> condition) -
Uses of Condition in org.assertj.core.internal
Methods in org.assertj.core.internal with parameters of type ConditionModifier and TypeMethodDescription<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 givenIterable
satisfies the given condition.<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.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 actualIterable
satisfying 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.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 actualIterable
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.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 actualIterable
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.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 givenIterable
not satisfies 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.<T> void
Conditions.assertDoesNotHave
(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value does not satisfy the given
.Condition
<E> void
Iterables.assertDoNotHave
(AssertionInfo info, Iterable<? extends E> actual, Condition<? super E> condition) Assert that each element of givenIterable
not satisfies the given condition.<E> void
ObjectArrays.assertDoNotHave
(AssertionInfo info, E[] actual, Condition<? super E> condition) Assert that each element of given array not satisfies the given condition.<T> void
Conditions.assertHas
(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value satisfies the given
.Condition
<T> void
Lists.assertHas
(AssertionInfo info, List<? extends T> actual, Condition<? super T> condition, Index index) Verifies that the givenList
satisfies the given
at the given index.Condition
<K,
V> void Maps.assertHasEntrySatisfying
(AssertionInfo info, Map<K, V> actual, K key, Condition<? super V> valueCondition) <K,
V> void Maps.assertHasEntrySatisfying
(AssertionInfo info, Map<K, V> actual, Condition<? super Map.Entry<K, V>> entryCondition) <K,
V> void Maps.assertHasEntrySatisfyingConditions
(AssertionInfo info, Map<K, V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition) <K> void
Maps.assertHasKeySatisfying
(AssertionInfo info, Map<K, ?> actual, Condition<? super K> keyCondition) <V> void
Maps.assertHasValueSatisfying
(AssertionInfo info, Map<?, V> actual, Condition<? super V> valueCondition) <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 givenIterable
satisfies the given condition.<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.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 ofIterables.assertAreAtLeast(AssertionInfo, Iterable, int, Condition)
to provide a richer fluent api (same logic, only error message differs).<E> void
ObjectArrays.assertHaveAtLeast
(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreAtLeast(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 ofIterables.assertAreAtMost(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 ofObjectArrays.assertAreAtMost(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 ofIterables.assertAreExactly(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 ofObjectArrays.assertAreExactly(AssertionInfo, Object[], 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
Conditions.assertIs
(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value satisfies the given
.Condition
<T> void
Lists.assertIs
(AssertionInfo info, List<? extends T> actual, Condition<? super T> condition, Index index) Verifies that the givenList
satisfies the given
at the given index.Condition
<T> void
Conditions.assertIsNot
(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value does not satisfy the given
.Condition
void
Conditions.assertIsNotNull
(Condition<?> condition) Asserts the given
is not null.Condition
void
Conditions.assertIsNotNull
(Condition<?> condition, String format, Object... args) Asserts the given
is not null.Condition
private void
Lists.assertNotNull
(Condition<?> condition) <T> void
Conditions.assertSatisfies
(AssertionInfo info, T actual, Condition<? super T> condition) private <T> boolean
Lists.conditionIsMetAtIndex
(AssertionInfo info, List<T> actual, Condition<? super T> condition, Index index) private <E> boolean
Iterables.conditionIsSatisfiedAtLeastNTimes
(Iterable<? extends E> actual, int n, Condition<? super E> condition) private <E> boolean
Iterables.conditionIsSatisfiedAtMostNTimes
(Iterable<? extends E> actual, Condition<? super E> condition, int n) private <E> boolean
Iterables.conditionIsSatisfiedNTimes
(Iterable<? extends E> actual, Condition<? super E> condition, int times) private <E> List
<E> Arrays.filterElements
(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition, boolean negateCondition) private <E> List
<E> Arrays.getElementsMatchingCondition
(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition) private <E> List
<E> Arrays.getElementsNotMatchingCondition
(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition) private <E> List
<E> Iterables.notSatisfyingCondition
(Iterable<? extends E> actual, Condition<? super E> condition) private <E> List
<E> Iterables.satisfiesCondition
(Iterable<? extends E> actual, Condition<? super E> condition)