Uses of Class
org.fest.assertions.core.Condition
Packages that use Condition
Package
Description
-
Uses of Condition in org.fest.assertions.api
Methods in org.fest.assertions.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 newAnyOf
static <T> Condition
<T> Only delegate toAnyOf.anyOf(Condition...)
so that Assertions offers a full feature entry point to all Fest Assert features (but you can useAnyOf
if you prefer).Methods in org.fest.assertions.api with parameters of type ConditionModifier and TypeMethodDescriptionstatic <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 Fest Assert features (but you can useAnyOf
if you prefer).Verifies that each element value satisfies the given conditionVerifies that each element value satisfies the given conditionAbstractIterableAssert.areAtLeast
(int times, Condition<? super T> condition) Verifies that there is at least n elements in the actual group satisfying the given condition.ObjectArrayAssert.areAtLeast
(int times, Condition<? super T> condition) Verifies that there is at least n elements in the actual group satisfying the given condition.Verifies that there is at most n elements in the actual group satisfying the given condition.Verifies that there is at most n elements in the actual group satisfying the given condition.AbstractIterableAssert.areExactly
(int times, Condition<? super T> condition) Verifies that there is exactly n elements in the actual group satisfying the given condition.ObjectArrayAssert.areExactly
(int times, Condition<? super T> condition) Verifies that there is exactly n elements in the actual group satisfying the given condition.Verifies that each element value not satisfies the given conditionVerifies that each element value not satisfies the given conditionAbstractIterableAssert.areNotAtLeast
(int times, Condition<? super T> condition) Verifies that there is at least n elements in the actual group not satisfying the given condition.ObjectArrayAssert.areNotAtLeast
(int times, Condition<? super T> condition) Verifies that there is at least n elements in the actual group not satisfying the given condition.AbstractIterableAssert.areNotAtMost
(int times, Condition<? super T> condition) Verifies that there is at most n elements in the actual group not satisfying the given condition.ObjectArrayAssert.areNotAtMost
(int times, Condition<? super T> condition) Verifies that there is at most n elements in the actual group not satisfying the given condition.AbstractIterableAssert.areNotExactly
(int times, Condition<? super T> condition) Verifies that there is exactly n elements in the actual group not satisfying the given condition.ObjectArrayAssert.areNotExactly
(int times, Condition<? super T> condition) Verifies that there is exactly n elements in the actual group not satisfying the given condition.AbstractAssert.doesNotHave
(Condition<? super A> condition) Verifies that the actual value does not satisfy the given condition.static <T> DoesNotHave
<T> Assertions.doesNotHave
(Condition<? super T> condition) Creates a newDoesNotHave
.Verifies that each element value not satisfies the given conditionVerifies that each element value not satisfies the given conditionAbstractIterableAssert.doNotHaveAtLeast
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotAtLeast(int, Condition)
.ObjectArrayAssert.doNotHaveAtLeast
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotAtLeast(int, Condition)
.AbstractIterableAssert.doNotHaveAtMost
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotAtMost(int, Condition)
.ObjectArrayAssert.doNotHaveAtMost
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotAtMost(int, Condition)
.AbstractIterableAssert.doNotHaveExactly
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotExactly(int, Condition)
.ObjectArrayAssert.doNotHaveExactly
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotExactly(int, 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 each element value satisfies the given conditionVerifies that each element value satisfies the given conditionAbstractIterableAssert.haveAtLeast
(int times, Condition<? super T> condition) This method is an alias forObjectEnumerableAssert.areAtLeast(int, Condition)
.ObjectArrayAssert.haveAtLeast
(int times, Condition<? super T> condition) This method is an alias forObjectEnumerableAssert.areAtLeast(int, Condition)
.AbstractIterableAssert.haveAtMost
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areAtMost(int, Condition)
.ObjectArrayAssert.haveAtMost
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areAtMost(int, Condition)
.AbstractIterableAssert.haveExactly
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areExactly(int, Condition)
.ObjectArrayAssert.haveExactly
(int times, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areExactly(int, 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 does not satisfy the given condition.static <T> Not
<T> Creates a newNot
.Method parameters in org.fest.assertions.api with type arguments of type Condition -
Uses of Condition in org.fest.assertions.api.filter
Methods in org.fest.assertions.api.filter with parameters of type ConditionModifier and TypeMethodDescriptionFilter 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.fest.assertions.condition
Subclasses of Condition in org.fest.assertions.conditionModifier and TypeClassDescriptionclass
AllOf<T>
Returnstrue
if all of the joined conditions is 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
Negative<T>
Inverse the condition.class
Not<T>
Returnstrue
if the condition is not satisfied.Methods in org.fest.assertions.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
Methods in org.fest.assertions.condition that return types with arguments of type ConditionModifier and TypeMethodDescriptionprotected final Collection
<Condition<? super T>> Join.conditions()
Returns the conditions to join.Methods in org.fest.assertions.condition with parameters of type ConditionModifier and TypeMethodDescriptionstatic <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAnyOf
static <T> DoesNotHave
<T> DoesNotHave.doesNotHave
(Condition<? super T> condition) Creates a newDoesNotHave
.static <T> Not
<T> Creates a newNot
.Method parameters in org.fest.assertions.condition with type arguments of type ConditionModifier and TypeMethodDescriptionstatic <T> Condition
<T> Creates a newAllOf
static <T> Condition
<T> Creates a newAnyOf
Constructors in org.fest.assertions.condition with parameters of type ConditionConstructor parameters in org.fest.assertions.condition with type arguments of type Condition -
Uses of Condition in org.fest.assertions.core
Methods in org.fest.assertions.core that return ConditionModifier and TypeMethodDescriptionSets the description of this object.Condition.as
(Description newDescription) Sets the description of this object.Condition.describedAs
(String newDescription) Alias for
since "as" is a keyword in Groovy.Descriptable.as(String)
Condition.describedAs
(Description newDescription) Alias for
since "as" is a keyword in Groovy.Descriptable.as(String)
Methods in org.fest.assertions.core with parameters of type ConditionModifier and TypeMethodDescriptionVerifies that each element value satisfies the given conditionObjectEnumerableAssert.areAtLeast
(int n, Condition<? super T> condition) Verifies that there is at least n elements in the actual group satisfying the given condition.Verifies that there is at most n elements in the actual group satisfying the given condition.ObjectEnumerableAssert.areExactly
(int n, Condition<? super T> condition) Verifies that there is exactly n elements in the actual group satisfying the given condition.Verifies that each element value not satisfies the given conditionObjectEnumerableAssert.areNotAtLeast
(int n, Condition<? super T> condition) Verifies that there is at least n elements in the actual group not satisfying the given condition.ObjectEnumerableAssert.areNotAtMost
(int n, Condition<? super T> condition) Verifies that there is at most n elements in the actual group not satisfying the given condition.ObjectEnumerableAssert.areNotExactly
(int n, Condition<? super T> condition) Verifies that there is exactly n elements in the actual group not satisfying the given condition.ExtensionPoints.doesNotHave
(Condition<? super A> condition) Verifies that the actual value does not satisfy the given condition.Verifies that each element value not satisfies the given conditionObjectEnumerableAssert.doNotHaveAtLeast
(int n, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotAtLeast(int, Condition)
.ObjectEnumerableAssert.doNotHaveAtMost
(int n, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotAtMost(int, Condition)
.ObjectEnumerableAssert.doNotHaveExactly
(int n, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areNotExactly(int, Condition)
.Verifies that the actual value satisfies the given condition.Verifies that each element value satisfies the given conditionObjectEnumerableAssert.haveAtLeast
(int n, Condition<? super T> condition) This method is an alias forObjectEnumerableAssert.areAtLeast(int, Condition)
.ObjectEnumerableAssert.haveAtMost
(int n, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areAtMost(int, Condition)
.ObjectEnumerableAssert.haveExactly
(int n, Condition<? super T> condition) This method is an aliasObjectEnumerableAssert.areExactly(int, Condition)
.Verifies that the actual value satisfies the given condition.Verifies that the actual value does not satisfy the given condition. -
Uses of Condition in org.fest.assertions.error
Methods in org.fest.assertions.error with parameters of type ConditionModifier and TypeMethodDescriptionstatic ErrorMessageFactory
ElementsShouldBe.elementsShouldBe
(Object actual, Object notSatisfies, Condition<?> condition) Creates a newElementsShouldBe
.static ErrorMessageFactory
ElementsShouldBeAtLeast.elementsShouldBeAtLeast
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldBeAtLeast
.static ErrorMessageFactory
ElementsShouldBeAtMost.elementsShouldBeAtMost
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldBeAtMost
.static ErrorMessageFactory
ElementsShouldBeExactly.elementsShouldBeExactly
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldBeExactly
.static ErrorMessageFactory
ElementsShouldHave.elementsShouldHave
(Object actual, Object notSatisfies, Condition<?> condition) Creates a newElementsShouldHave
.static ErrorMessageFactory
ElementsShouldHaveAtLeast.elementsShouldHaveAtLeast
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldHaveAtLeast
.static ErrorMessageFactory
ElementsShouldHaveAtMost.elementsShouldHaveAtMost
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldHaveAtMost
.static <E> ErrorMessageFactory
ElementsShouldHaveExactly.elementsShouldHaveExactly
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldHaveExactly
.static ErrorMessageFactory
ElementsShouldNotBe.elementsShouldNotBe
(Object actual, Object satisfies, Condition<?> condition) Creates a newElementsShouldNotBe
.static ErrorMessageFactory
ElementsShouldNotBeAtLeast.elementsShouldNotBeAtLeast
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotBeAtLeast
.static <E> ErrorMessageFactory
ElementsShouldNotBeAtMost.elementsShouldNotBeAtMost
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotBeAtMost
.static <E> ErrorMessageFactory
ElementsShouldNotBeExactly.elementsShouldNotBeExactly
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotBeExactly
.static ErrorMessageFactory
ElementsShouldNotHave.elementsShouldNotHave
(Object actual, Object notSatisfies, Condition<?> condition) Creates a newElementsShouldNotHave
.static ErrorMessageFactory
ElementsShouldNotHaveAtLeast.elementsShouldNotHaveAtLeast
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotHaveAtLeast
.static <E> ErrorMessageFactory
ElementsShouldNotHaveAtMost.elementsShouldNotHaveAtMost
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotHaveAtMost
.static <E> ErrorMessageFactory
ElementsShouldNotHaveExactly.elementsShouldNotHaveExactly
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotHaveExactly
.static <T> ErrorMessageFactory
Creates a newShouldBe
.static <T> ErrorMessageFactory
ShouldBeAtIndex.shouldBeAtIndex
(List<T> actual, Condition<? super T> condition, Index index, T found) Creates a newShouldBeAtIndex
.static ErrorMessageFactory
ConditionAndGroupGenericParameterTypeShouldBeTheSame.shouldBeSameGenericBetweenIterableAndCondition
(Object actual, Condition<?> condition) Creates a newConditionAndGroupGenericParameterTypeShouldBeTheSame
static <T> ErrorMessageFactory
ShouldHave.shouldHave
(T actual, Condition<? super T> condition) Creates a newShouldHave
.static <T> ErrorMessageFactory
ShouldHaveAtIndex.shouldHaveAtIndex
(List<T> actual, Condition<? super T> condition, Index index, T found) Creates a newShouldHaveAtIndex
.static <T> ErrorMessageFactory
ShouldNotBe.shouldNotBe
(T actual, Condition<? super T> condition) Creates a newShouldNotBe
.static <T> ErrorMessageFactory
ShouldNotHave.shouldNotHave
(T actual, Condition<? super T> condition) Creates a newShouldNotHave
.Constructors in org.fest.assertions.error with parameters of type ConditionModifierConstructorDescriptionConditionAndGroupGenericParameterTypeShouldBeTheSame
(Object actual, Condition<?> condition) -
Uses of Condition in org.fest.assertions.internal
Methods in org.fest.assertions.internal with parameters of type ConditionModifier and TypeMethodDescription<E> void
Iterables.assertAre
(AssertionInfo info, Iterable<? extends E> actual, Condition<? super E> 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
Iterables.assertAreAtLeast
(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Assert that there is 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 is at least n array elements satisfying the given condition.<E> void
Iterables.assertAreAtMost
(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Assert that there is 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 is at most n array elements satisfying the given condition.<E> void
Iterables.assertAreExactly
(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Verifies that there is 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 is exactly n array elements satisfying the given 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.<E> void
Iterables.assertAreNotAtLeast
(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Assert that there is at least n elements in the actualIterable
not satisfying the given condition.<E> void
ObjectArrays.assertAreNotAtLeast
(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Assert that there is at least n array elements not satisfying the given condition.<E> void
Iterables.assertAreNotAtMost
(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Verifies that there is at most n elements in the actualIterable
not satisfying the given condition.<E> void
ObjectArrays.assertAreNotAtMost
(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Verifies that there is at most n array elements not satisfying the given condition.<E> void
Iterables.assertAreNotExactly
(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Verifies that there is exactly n elements in the actualIterable
not satisfying the given condition.<E> void
ObjectArrays.assertAreNotExactly
(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Verifies that there is exactly n elements in the actualIterable
not satisfying 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.<E> void
Iterables.assertDoNotHaveAtLeast
(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreNotAtLeast(AssertionInfo, Iterable, int, Condition)
to provide a richer fluent api (same logic, only error message differs).<E> void
ObjectArrays.assertDoNotHaveAtLeast
(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreNotAtLeast(AssertionInfo, Object[], int, Condition)
to provide a richer fluent api (same logic, only error message differs).<E> void
Iterables.assertDoNotHaveAtMost
(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreNotAtMost(AssertionInfo, Iterable, int, Condition)
to provide a richer fluent api (same logic, only error message differs).<E> void
ObjectArrays.assertDoNotHaveAtMost
(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreNotAtMost(AssertionInfo, Object[], int, Condition)
to provide a richer fluent api (same logic, only error message differs).<E> void
Iterables.assertDoNotHaveExactly
(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreNotExactly(AssertionInfo, Iterable, int, Condition)
to provide a richer fluent api (same logic, only error message differs).<E> void
ObjectArrays.assertDoNotHaveExactly
(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreNotExactly(AssertionInfo, Object[], int, Condition)
to provide a richer fluent api (same logic, only error message differs).<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<T> actual, Condition<? super T> condition, Index index) Verifies that the givenList
satisfies the given
at the given index.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
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
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
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).<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<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 the given
is not null.Condition