Uses of Class
org.assertj.core.api.Condition
-
Packages that use Condition Package Description org.assertj.core.api org.assertj.core.api.filter org.assertj.core.condition org.assertj.core.error org.assertj.core.internal -
-
Uses of Condition in org.assertj.core.api
Subclasses of Condition in org.assertj.core.api Modifier and Type Class Description classHamcrestCondition<T>Allows to use a Hamcrest matcher as a condition.Methods in org.assertj.core.api that return Condition Modifier and Type Method Description static <T> Condition<T>Assertions. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>Assertions. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>AssertionsForClassTypes. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>AssertionsForClassTypes. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>BDDAssertions. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>BDDAssertions. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>Java6Assertions. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Deprecated.Creates a newAllOfstatic <T> Condition<T>Java6Assertions. allOf(Condition<? super T>... conditions)Deprecated.Creates a newAllOfdefault <T> Condition<T>WithAssertions. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfdefault <T> Condition<T>WithAssertions. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>Assertions. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>Assertions. anyOf(Condition<? super T>... conditions)Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).static <T> Condition<T>AssertionsForClassTypes. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>AssertionsForClassTypes. anyOf(Condition<? super T>... conditions)Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).static <T> Condition<T>BDDAssertions. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>BDDAssertions. anyOf(Condition<? super T>... conditions)Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).static <T> Condition<T>Java6Assertions. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Deprecated.Creates a newAnyOfstatic <T> Condition<T>Java6Assertions. anyOf(Condition<? super T>... conditions)Deprecated.Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).default <T> Condition<T>WithAssertions. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfdefault <T> Condition<T>WithAssertions. anyOf(Condition<? super T>... conditions)Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).Condition<T>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 Condition Modifier and Type Method Description static <T> Condition<T>Assertions. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>AssertionsForClassTypes. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>BDDAssertions. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>Java6Assertions. allOf(Condition<? super T>... conditions)Deprecated.Creates a newAllOfdefault <T> Condition<T>WithAssertions. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>Assertions. anyOf(Condition<? super T>... conditions)Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).static <T> Condition<T>AssertionsForClassTypes. anyOf(Condition<? super T>... conditions)Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).static <T> Condition<T>BDDAssertions. anyOf(Condition<? super T>... conditions)Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).static <T> Condition<T>Java6Assertions. anyOf(Condition<? super T>... conditions)Deprecated.Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).default <T> Condition<T>WithAssertions. anyOf(Condition<? super T>... conditions)Only delegate toAnyOf.anyOf(Condition...)so that Assertions offers a full feature entry point to all AssertJ features (but you can useAnyOfif you prefer).SELFAbstractIterableAssert. are(Condition<? super ELEMENT> condition)Verifies that each element value satisfies the given condition.SELFAbstractObjectArrayAssert. are(Condition<? super ELEMENT> condition)Verifies that each element value satisfies the given conditionAtomicReferenceArrayAssert<T>AtomicReferenceArrayAssert. are(Condition<? super T> condition)Verifies that each element value satisfies the given conditionSELFObjectEnumerableAssert. are(Condition<? super ELEMENT> condition)Verifies that each element value satisfies the given condition.SELFAbstractIterableAssert. areAtLeast(int times, Condition<? super ELEMENT> condition)Verifies that there are at least n elements in the actual group satisfying the given condition.SELFAbstractObjectArrayAssert. areAtLeast(int times, Condition<? super ELEMENT> condition)Verifies that there are at least n elements in the actual array 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.SELFObjectEnumerableAssert. areAtLeast(int n, Condition<? super ELEMENT> condition)Verifies that there are at least n elements in the actual group satisfying the given condition.SELFAbstractIterableAssert. areAtLeastOne(Condition<? super ELEMENT> condition)Verifies that there is at least one element in the actual group satisfying the given condition.SELFAbstractObjectArrayAssert. areAtLeastOne(Condition<? super ELEMENT> condition)Verifies that there is at least one element in the actual array 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.SELFObjectEnumerableAssert. areAtLeastOne(Condition<? super ELEMENT> condition)Verifies that there is at least one element in the actual group satisfying the given condition.SELFAbstractIterableAssert. areAtMost(int times, Condition<? super ELEMENT> condition)Verifies that there are at most n elements in the actual group satisfying the given condition.SELFAbstractObjectArrayAssert. areAtMost(int times, Condition<? super ELEMENT> condition)Verifies that there are at most n elements in the actual array 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.SELFObjectEnumerableAssert. areAtMost(int n, Condition<? super ELEMENT> condition)Verifies that there are at most n elements in the actual group satisfying the given condition.SELFAbstractIterableAssert. areExactly(int times, Condition<? super ELEMENT> condition)Verifies that there are exactly n elements in the actual group satisfying the given condition.SELFAbstractObjectArrayAssert. areExactly(int times, Condition<? super ELEMENT> condition)Verifies that there are exactly n elements in the actual array 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.SELFObjectEnumerableAssert. areExactly(int n, Condition<? super ELEMENT> condition)Verifies that there are exactly n elements in the actual group satisfying the given condition.SELFAbstractIterableAssert. areNot(Condition<? super ELEMENT> condition)Verifies that each element value does not satisfy the given condition.SELFAbstractObjectArrayAssert. areNot(Condition<? super ELEMENT> condition)Verifies that each element value does not satisfy the given conditionAtomicReferenceArrayAssert<T>AtomicReferenceArrayAssert. areNot(Condition<? super T> condition)Verifies that each element value does not satisfy the given conditionSELFObjectEnumerableAssert. areNot(Condition<? super ELEMENT> condition)Verifies that each element value does not satisfy the given condition.SELFAbstractAssert. doesNotHave(Condition<? super ACTUAL> condition)Verifies that the actual value does not satisfy the given condition.SELFAbstractIterableAssert. doesNotHave(Condition<? super ACTUAL> condition)SELFAbstractListAssert. doesNotHave(Condition<? super ACTUAL> condition)SELFAbstractMapAssert. doesNotHave(Condition<? super ACTUAL> condition)static <T> DoesNotHave<T>Assertions. doesNotHave(Condition<? super T> condition)Creates a new.DoesNotHavestatic <T> DoesNotHave<T>AssertionsForClassTypes. doesNotHave(Condition<? super T> condition)Creates a new.DoesNotHavestatic <T> DoesNotHave<T>BDDAssertions. doesNotHave(Condition<? super T> condition)Creates a new.DoesNotHaveSELFExtensionPoints. 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.DoesNotHavedefault <T> DoesNotHave<T>WithAssertions. doesNotHave(Condition<? super T> condition)Creates a new.DoesNotHaveSELFAbstractIterableAssert. doNotHave(Condition<? super ELEMENT> condition)Verifies that all elements do not satisfy the given condition.SELFAbstractObjectArrayAssert. doNotHave(Condition<? super ELEMENT> condition)Verifies that all elements don't satisfy the given condition.AtomicReferenceArrayAssert<T>AtomicReferenceArrayAssert. doNotHave(Condition<? super T> condition)Verifies that all elements don't satisfy the given condition.SELFObjectEnumerableAssert. doNotHave(Condition<? super ELEMENT> condition)Verifies that all elements do not satisfy the given condition.SELFAbstractIterableAssert. filteredOn(Condition<? super ELEMENT> condition)Filters the iterable under test keeping only elements matching the givenCondition.SELFAbstractObjectArrayAssert. 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<T>AtomicReferenceArrayAssert. filteredOn(Condition<? super T> condition)Filter the array under test keeping only elements matching the givenCondition.SELFAbstractAssert. has(Condition<? super ACTUAL> condition)Verifies that the actual value satisfies the given condition.SELFAbstractIterableAssert. has(Condition<? super ACTUAL> condition)SELFAbstractListAssert. has(Condition<? super ACTUAL> condition)SELFAbstractListAssert. has(Condition<? super ELEMENT> condition, Index index)Verifies that the actual object at the given index in the actual group satisfies the given condition.SELFAbstractMapAssert. has(Condition<? super ACTUAL> condition)SELFExtensionPoints. has(Condition<? super ACTUAL> condition)Verifies that the actual value satisfies the given condition.SELFAbstractMapAssert. hasEntrySatisfying(K key, Condition<? super V> valueCondition)Verifies that the actual map contains a value for the givenkeythat satisfies the givenvalueCondition.SELFAbstractMapAssert. hasEntrySatisfying(Condition<? super java.util.Map.Entry<K,V>> entryCondition)Verifies that the actual map contains an entry satisfying the givenentryCondition.SELFAbstractMapAssert. hasEntrySatisfying(Condition<? super K> keyCondition, Condition<? super V> valueCondition)Verifies that the actual map contains an entry with a key satisfying the givenkeyConditionand a value satisfying the givenvalueCondition.SELFAbstractMapAssert. hasKeySatisfying(Condition<? super K> keyCondition)Verifies that the actual map contains an entry with a key satisfying the givenkeyCondition.SELFAbstractMapAssert. hasValueSatisfying(Condition<? super V> valueCondition)Verifies that the actual map contains an entry with a value satisfying the givenvalueCondition.SELFAbstractOptionalAssert. hasValueSatisfying(Condition<? super VALUE> condition)Verifies that the actualOptionalcontains a value which satisfies the givenCondition.SELFAbstractIterableAssert. have(Condition<? super ELEMENT> condition)Verifies that all elements satisfy the given condition.SELFAbstractObjectArrayAssert. 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.SELFObjectEnumerableAssert. have(Condition<? super ELEMENT> condition)Verifies that all elements satisfy the given condition.SELFAbstractIterableAssert. haveAtLeast(int times, Condition<? super ELEMENT> condition)Verifies that there are at least n elements in the actual group satisfying the given condition.SELFAbstractObjectArrayAssert. haveAtLeast(int times, Condition<? super ELEMENT> condition)Verifies that there are at least n elements in the actual array 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.SELFObjectEnumerableAssert. haveAtLeast(int n, Condition<? super ELEMENT> condition)Verifies that there are at least n elements in the actual group satisfying the given condition.SELFAbstractIterableAssert. haveAtLeastOne(Condition<? super ELEMENT> condition)Verifies that there is at least one element in the actual group satisfying the given condition.SELFAbstractObjectArrayAssert. haveAtLeastOne(Condition<? super ELEMENT> condition)Verifies that there is at least one element in the actual array 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.SELFObjectEnumerableAssert. haveAtLeastOne(Condition<? super ELEMENT> condition)Verifies that there is at least one element in the actual group satisfying the given condition.SELFAbstractIterableAssert. haveAtMost(int times, Condition<? super ELEMENT> condition)Verifies that there are at most n elements in the actual group satisfying the given condition.SELFAbstractObjectArrayAssert. haveAtMost(int times, Condition<? super ELEMENT> condition)Verifies that there are at most n elements in the actual array 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.SELFObjectEnumerableAssert. haveAtMost(int n, Condition<? super ELEMENT> condition)Verifies that there are at most n elements in the actual group satisfying the given condition.SELFAbstractIterableAssert. haveExactly(int times, Condition<? super ELEMENT> condition)Verifies that there are exactly n elements in the actual group satisfying the given condition.SELFAbstractObjectArrayAssert. haveExactly(int times, Condition<? super ELEMENT> condition)Verifies that there are exactly n elements in the actual array 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.SELFObjectEnumerableAssert. haveExactly(int n, Condition<? super ELEMENT> condition)Verifies that there are exactly n elements in the actual group satisfying the given condition.SELFAbstractAssert. is(Condition<? super ACTUAL> condition)Verifies that the actual value satisfies the given condition.SELFAbstractIterableAssert. is(Condition<? super ACTUAL> condition)SELFAbstractListAssert. is(Condition<? super ACTUAL> condition)SELFAbstractListAssert. is(Condition<? super ELEMENT> condition, Index index)Verifies that the actual object at the given index in the actual group satisfies the given condition.SELFAbstractMapAssert. is(Condition<? super ACTUAL> condition)SELFExtensionPoints. is(Condition<? super ACTUAL> condition)Verifies that the actual value satisfies the given condition.SELFAbstractAssert. isNot(Condition<? super ACTUAL> condition)Verifies that the actual value does not satisfy the given condition.SELFAbstractIterableAssert. isNot(Condition<? super ACTUAL> condition)SELFAbstractListAssert. isNot(Condition<? super ACTUAL> condition)SELFAbstractMapAssert. isNot(Condition<? super ACTUAL> condition)SELFExtensionPoints. isNot(Condition<? super ACTUAL> condition)Verifies that the actual value does not satisfy the given condition.static <T> Not<T>Assertions. not(Condition<? super T> condition)Creates a new.Notstatic <T> Not<T>AssertionsForClassTypes. not(Condition<? super T> condition)Creates a new.Notstatic <T> Not<T>BDDAssertions. not(Condition<? super T> condition)Creates a new.Notstatic <T> Not<T>Java6Assertions. not(Condition<? super T> condition)Deprecated.Creates a new.Notdefault <T> Not<T>WithAssertions. not(Condition<? super T> condition)Creates a new.NotSELFAbstractAssert. satisfies(Condition<? super ACTUAL> condition)Verifies that the actual value satisfies the given condition.SELFExtensionPoints. satisfies(Condition<? super ACTUAL> condition)Verifies that the actual value satisfies the given condition.Method parameters in org.assertj.core.api with type arguments of type Condition Modifier and Type Method Description static <T> Condition<T>Assertions. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>AssertionsForClassTypes. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>BDDAssertions. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>Java6Assertions. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Deprecated.Creates a newAllOfdefault <T> Condition<T>WithAssertions. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>Assertions. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>AssertionsForClassTypes. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>BDDAssertions. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>Java6Assertions. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Deprecated.Creates a newAnyOfdefault <T> Condition<T>WithAssertions. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOf -
Uses of Condition in org.assertj.core.api.filter
Methods in org.assertj.core.api.filter with parameters of type Condition Modifier and Type Method Description private Filters<E>Filters. applyFilterCondition(Condition<? super E> condition)Filters<E>Filters. being(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.Filters<E>Filters. having(Condition<? super E> condition)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.condition Modifier and Type Class Description classAllOf<T>Returnstrueif all of the joined conditions are satisfied.classAnyOf<T>Returnstrueif any of the joined conditions is satisfied.classDoesNotHave<T>Returnstrueif the condition is not satisfied.classJoin<T>Join of two or mores.ConditionclassMappedCondition<FROM,TO>classNegative<T>Inverse the condition.classNestableCondition<ACTUAL,NESTED>Building block to define precise conditions on complex objects.classNot<T>Returnstrueif the condition is not satisfied.classVerboseCondition<T>Conditionthat shows the value under test when the condition fails thanks to the specifiedobjectUnderTestDescriptorfunction.Fields in org.assertj.core.condition declared as Condition Modifier and Type Field Description private Condition<TO>MappedCondition. condition(package private) Condition<? super T>Negative. conditionFields in org.assertj.core.condition with type parameters of type Condition Modifier and Type Field Description (package private) java.util.Collection<Condition<? super T>>Join. conditionsMethods in org.assertj.core.condition that return Condition Modifier and Type Method Description static <T> Condition<T>AllOf. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>AllOf. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>AnyOf. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>AnyOf. anyOf(Condition<? super T>... conditions)Creates a newAnyOfprivate static <ACTUAL,NESTED>
Condition<ACTUAL>NestableCondition. compose(Condition<? super NESTED> condition, java.util.function.Function<? super ACTUAL,? extends NESTED> extractor)static <ACTUAL,NESTED>
Condition<ACTUAL>NestableCondition. nestable(java.lang.String descriptionPrefix, java.util.function.Function<? super ACTUAL,? extends NESTED> extractor, Condition<? super NESTED>... conditions)Creates a newNestableConditionstatic <ACTUAL> Condition<ACTUAL>NestableCondition. nestable(java.lang.String descriptionPrefix, Condition<? super ACTUAL>... conditions)Creates a newNestableConditionMethods in org.assertj.core.condition that return types with arguments of type Condition Modifier and Type Method Description private static <ACTUAL,NESTED>
java.util.List<Condition<? super ACTUAL>>NestableCondition. compose(java.util.stream.Stream<? extends Condition<? super NESTED>> conditions, java.util.function.Function<? super ACTUAL,? extends NESTED> extractor)java.util.Collection<Condition<? super T>>Join. conditions()Returns the conditions to join.Methods in org.assertj.core.condition with parameters of type Condition Modifier and Type Method Description static <T> Condition<T>AllOf. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>AnyOf. anyOf(Condition<? super T>... conditions)Creates a newAnyOfprivate static <ACTUAL,NESTED>
Condition<ACTUAL>NestableCondition. compose(Condition<? super NESTED> condition, java.util.function.Function<? super ACTUAL,? extends NESTED> extractor)static <T> DoesNotHave<T>DoesNotHave. doesNotHave(Condition<? super T> condition)Creates a new.DoesNotHavestatic <FROM,TO>
MappedCondition<FROM,TO>MappedCondition. mappedCondition(java.util.function.Function<FROM,TO> mapping, Condition<TO> condition)Creates a newMappedConditionstatic <FROM,TO>
MappedCondition<FROM,TO>MappedCondition. mappedCondition(java.util.function.Function<FROM,TO> mapping, Condition<TO> condition, java.lang.String mappingDescription, java.lang.Object... args)Creates a new.MappedConditionstatic <ACTUAL,NESTED>
Condition<ACTUAL>NestableCondition. nestable(java.lang.String descriptionPrefix, java.util.function.Function<? super ACTUAL,? extends NESTED> extractor, Condition<? super NESTED>... conditions)Creates a newNestableConditionstatic <ACTUAL> Condition<ACTUAL>NestableCondition. nestable(java.lang.String descriptionPrefix, Condition<? super ACTUAL>... conditions)Creates a newNestableConditionstatic <T> Not<T>Not. not(Condition<? super T> condition)Creates a new.NotMethod parameters in org.assertj.core.condition with type arguments of type Condition Modifier and Type Method Description static <T> Condition<T>AllOf. allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>AnyOf. anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfprivate static <ACTUAL,NESTED>
java.util.List<Condition<? super ACTUAL>>NestableCondition. compose(java.util.stream.Stream<? extends Condition<? super NESTED>> conditions, java.util.function.Function<? super ACTUAL,? extends NESTED> extractor)Constructors in org.assertj.core.condition with parameters of type Condition Constructor Description AllOf(Condition<? super T>... conditions)AnyOf(Condition<? super T>... conditions)DoesNotHave(Condition<? super T> condition)Join(Condition<? super T>... conditions)Creates a new.JoinMappedCondition(java.util.function.Function<FROM,TO> mapping, Condition<TO> condition, java.lang.String mappingDescription)Negative(Condition<? super T> condition)Not(Condition<? super T> condition)Constructor parameters in org.assertj.core.condition with type arguments of type Condition Constructor Description AllOf(java.lang.Iterable<? extends Condition<? super T>> conditions)AnyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Join(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a new.JoinJoin(java.util.stream.Stream<? extends Condition<? super T>> stream)NestableCondition(java.lang.String descriptionPrefix, java.util.stream.Stream<? extends Condition<? super ACTUAL>> conditions)NestableCondition(java.lang.String descriptionPrefix, java.util.stream.Stream<? extends Condition<? super NESTED>> conditions, java.util.function.Function<? super ACTUAL,? extends NESTED> extractor) -
Uses of Condition in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type Condition Modifier and Type Method Description static ErrorMessageFactoryElementsShouldBe. elementsShouldBe(java.lang.Object actual, java.lang.Object notSatisfies, Condition<?> condition)Creates a new.ElementsShouldBestatic ErrorMessageFactoryElementsShouldBeAtLeast. elementsShouldBeAtLeast(java.lang.Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldBeAtLeaststatic ErrorMessageFactoryElementsShouldBeAtMost. elementsShouldBeAtMost(java.lang.Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldBeAtMoststatic ErrorMessageFactoryElementsShouldBeExactly. elementsShouldBeExactly(java.lang.Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldBeExactlystatic ErrorMessageFactoryElementsShouldHave. elementsShouldHave(java.lang.Object actual, java.lang.Object notSatisfies, Condition<?> condition)Creates a new.ElementsShouldHavestatic ErrorMessageFactoryElementsShouldHaveAtLeast. elementsShouldHaveAtLeast(java.lang.Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldHaveAtLeaststatic ErrorMessageFactoryElementsShouldHaveAtMost. elementsShouldHaveAtMost(java.lang.Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldHaveAtMoststatic ErrorMessageFactoryElementsShouldHaveExactly. elementsShouldHaveExactly(java.lang.Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldHaveExactlystatic ErrorMessageFactoryElementsShouldNotBe. elementsShouldNotBe(java.lang.Object actual, java.lang.Object satisfies, Condition<?> condition)Creates a new.ElementsShouldNotBestatic ErrorMessageFactoryElementsShouldNotHave. elementsShouldNotHave(java.lang.Object actual, java.lang.Object notSatisfies, Condition<?> condition)Creates a new.ElementsShouldNotHavestatic <T> ErrorMessageFactoryShouldBe. shouldBe(T actual, Condition<? super T> condition)Creates a new.ShouldBestatic <T> ErrorMessageFactoryShouldBeAtIndex. shouldBeAtIndex(java.util.List<? extends T> actual, Condition<? super T> condition, Index index, T found)Creates a new.ShouldBeAtIndexstatic ErrorMessageFactoryConditionAndGroupGenericParameterTypeShouldBeTheSame. shouldBeSameGenericBetweenIterableAndCondition(java.lang.Object actual, Condition<?> condition)Creates a newConditionAndGroupGenericParameterTypeShouldBeTheSamestatic <K,V>
ErrorMessageFactoryShouldContainEntry. shouldContainEntry(java.util.Map<K,V> actual, Condition<?> entryCondition)Creates a new.ShouldContainEntrystatic <K,V>
ErrorMessageFactoryShouldContainEntry. shouldContainEntry(java.util.Map<K,V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition)Creates a new.ShouldContainEntrystatic ErrorMessageFactoryShouldContainKey. shouldContainKey(java.lang.Object actual, Condition<?> keyCondition)Creates a new.ShouldContainKeystatic ErrorMessageFactoryShouldContainValue. shouldContainValue(java.lang.Object actual, Condition<?> valueCondition)Creates a new.ShouldContainValuestatic <T> ErrorMessageFactoryShouldHave. shouldHave(T actual, Condition<? super T> condition)Creates a new.ShouldHavestatic <T> ErrorMessageFactoryShouldHaveAtIndex. shouldHaveAtIndex(java.util.List<? extends T> actual, Condition<? super T> condition, Index index, T found)Creates a new.ShouldHaveAtIndexstatic <T> ErrorMessageFactoryShouldNotBe. shouldNotBe(T actual, Condition<? super T> condition)Creates a new.ShouldNotBestatic <T> ErrorMessageFactoryShouldNotHave. shouldNotHave(T actual, Condition<? super T> condition)Creates a new.ShouldNotHavestatic <T> ErrorMessageFactoryShouldSatisfy. shouldSatisfy(T actual, Condition<? super T> condition)Constructors in org.assertj.core.error with parameters of type Condition Constructor Description ConditionAndGroupGenericParameterTypeShouldBeTheSame(java.lang.Object actual, Condition<?> condition)ElementsShouldBe(java.lang.Object actual, java.lang.Object notSatisfies, Condition<?> condition)ElementsShouldBeAtLeast(java.lang.Object actual, int times, Condition<?> condition)ElementsShouldBeAtMost(java.lang.Object actual, int times, Condition<?> condition)ElementsShouldBeExactly(java.lang.Object actual, int times, Condition<?> condition)ElementsShouldHave(java.lang.Object actual, java.lang.Object notSatisfies, Condition<?> condition)ElementsShouldHaveAtLeast(java.lang.Object actual, int times, Condition<?> condition)ElementsShouldHaveAtMost(java.lang.Object actual, int times, Condition<?> condition)ElementsShouldHaveExactly(java.lang.Object actual, int times, Condition<?> condition)ElementsShouldNotBe(java.lang.Object actual, java.lang.Object satisfies, Condition<?> condition)ElementsShouldNotHave(java.lang.Object actual, java.lang.Object notSatisfies, Condition<?> condition)ShouldBe(java.lang.Object actual, Condition<?> condition)ShouldBeAtIndex(java.util.List<? extends T> actual, Condition<? super T> condition, Index index, T found)ShouldContainEntry(java.util.Map<K,V> actual, Condition<?> entryCondition)ShouldContainEntry(java.util.Map<K,V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition)ShouldContainKey(java.lang.Object actual, Condition<?> keyCondition)ShouldContainValue(java.lang.Object actual, Condition<?> valueCondition)ShouldHave(java.lang.Object actual, Condition<?> condition)ShouldHaveAtIndex(java.util.List<? extends T> actual, Condition<? super T> condition, Index index, T found)ShouldNotBe(java.lang.Object actual, Condition<?> condition)ShouldNotHave(java.lang.Object actual, Condition<?> condition)ShouldSatisfy(java.lang.Object actual, Condition<?> condition) -
Uses of Condition in org.assertj.core.internal
Methods in org.assertj.core.internal with parameters of type Condition Modifier and Type Method Description <E> voidArrays. assertAre(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, Condition<E> condition)<T> voidIterables. assertAre(AssertionInfo info, java.lang.Iterable<? extends T> actual, Condition<? super T> condition)Assert that each element of givenIterablesatisfies the given condition.<E> voidObjectArrays. assertAre(AssertionInfo info, E[] actual, Condition<? super E> condition)Assert that each element of given array satisfies the given condition.<E> voidArrays. assertAreAtLeast(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, int times, Condition<E> condition)<E> voidIterables. assertAreAtLeast(AssertionInfo info, java.lang.Iterable<? extends E> actual, int times, Condition<? super E> condition)Assert that there are at least n elements in the actualIterablesatisfying the given condition.<E> voidObjectArrays. 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> voidArrays. assertAreAtMost(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, int times, Condition<E> condition)<E> voidIterables. assertAreAtMost(AssertionInfo info, java.lang.Iterable<? extends E> actual, int n, Condition<? super E> condition)Assert that there are at most n elements in the actualIterablesatisfying the given condition.<E> voidObjectArrays. 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> voidArrays. assertAreExactly(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, int times, Condition<E> condition)<E> voidIterables. assertAreExactly(AssertionInfo info, java.lang.Iterable<? extends E> actual, int times, Condition<? super E> condition)Verifies that there are exactly n elements in the actualIterablesatisfying the given condition.<E> voidObjectArrays. assertAreExactly(AssertionInfo info, E[] actual, int n, Condition<? super E> condition)Verifies that there are exactly n array elements satisfying the given condition.<E> voidArrays. assertAreNot(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, Condition<E> condition)<E> voidIterables. assertAreNot(AssertionInfo info, java.lang.Iterable<? extends E> actual, Condition<? super E> condition)Assert that each element of givenIterablenot satisfies the given condition.<E> voidObjectArrays. assertAreNot(AssertionInfo info, E[] actual, Condition<? super E> condition)Assert that each element of given array not satisfies the given condition.<T> voidConditions. assertDoesNotHave(AssertionInfo info, T actual, Condition<? super T> condition)Asserts that the actual value does not satisfy the given.Condition<E> voidIterables. assertDoNotHave(AssertionInfo info, java.lang.Iterable<? extends E> actual, Condition<? super E> condition)Assert that each element of givenIterablenot satisfies the given condition.<E> voidObjectArrays. assertDoNotHave(AssertionInfo info, E[] actual, Condition<? super E> condition)Assert that each element of given array not satisfies the given condition.<T> voidConditions. assertHas(AssertionInfo info, T actual, Condition<? super T> condition)Asserts that the actual value satisfies the given.Condition<T> voidLists. assertHas(AssertionInfo info, java.util.List<? extends T> actual, Condition<? super T> condition, Index index)Verifies that the givenListsatisfies the givenat the given index.Condition<K,V>
voidMaps. assertHasEntrySatisfying(AssertionInfo info, java.util.Map<K,V> actual, K key, Condition<? super V> valueCondition)<K,V>
voidMaps. assertHasEntrySatisfying(AssertionInfo info, java.util.Map<K,V> actual, Condition<? super java.util.Map.Entry<K,V>> entryCondition)<K,V>
voidMaps. assertHasEntrySatisfyingConditions(AssertionInfo info, java.util.Map<K,V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition)<K> voidMaps. assertHasKeySatisfying(AssertionInfo info, java.util.Map<K,?> actual, Condition<? super K> keyCondition)<V> voidMaps. assertHasValueSatisfying(AssertionInfo info, java.util.Map<?,V> actual, Condition<? super V> valueCondition)<E> voidArrays. assertHave(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, Condition<E> condition)<E> voidIterables. assertHave(AssertionInfo info, java.lang.Iterable<? extends E> actual, Condition<? super E> condition)Assert that each element of givenIterablesatisfies the given condition.<E> voidObjectArrays. assertHave(AssertionInfo info, E[] actual, Condition<? super E> condition)Assert that each element of given array satisfies the given condition.<E> voidArrays. assertHaveAtLeast(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, int times, Condition<E> condition)<E> voidIterables. assertHaveAtLeast(AssertionInfo info, java.lang.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> voidObjectArrays. 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> voidArrays. assertHaveAtMost(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, int times, Condition<E> condition)<E> voidIterables. assertHaveAtMost(AssertionInfo info, java.lang.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> voidObjectArrays. 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> voidArrays. assertHaveExactly(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, int times, Condition<E> condition)<E> voidIterables. assertHaveExactly(AssertionInfo info, java.lang.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> voidObjectArrays. 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> voidArrays. assertHaveNot(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, Condition<E> condition)<T> voidConditions. assertIs(AssertionInfo info, T actual, Condition<? super T> condition)Asserts that the actual value satisfies the given.Condition<T> voidLists. assertIs(AssertionInfo info, java.util.List<? extends T> actual, Condition<? super T> condition, Index index)Verifies that the givenListsatisfies the givenat the given index.Condition<T> voidConditions. assertIsNot(AssertionInfo info, T actual, Condition<? super T> condition)Asserts that the actual value does not satisfy the given.ConditionvoidConditions. assertIsNotNull(Condition<?> condition)Asserts the givenis not null.ConditionvoidConditions. assertIsNotNull(Condition<?> condition, java.lang.String format, java.lang.Object... args)Asserts the givenis not null.Conditionprivate voidLists. assertNotNull(Condition<?> condition)<T> voidConditions. assertSatisfies(AssertionInfo info, T actual, Condition<? super T> condition)private <T> booleanLists. conditionIsMetAtIndex(AssertionInfo info, java.util.List<T> actual, Condition<? super T> condition, Index index)private <E> booleanIterables. conditionIsSatisfiedAtLeastNTimes(java.lang.Iterable<? extends E> actual, int n, Condition<? super E> condition)private <E> booleanIterables. conditionIsSatisfiedAtMostNTimes(java.lang.Iterable<? extends E> actual, Condition<? super E> condition, int n)private <E> booleanIterables. conditionIsSatisfiedNTimes(java.lang.Iterable<? extends E> actual, Condition<? super E> condition, int times)private <E> java.util.List<E>Arrays. filterElements(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, Condition<E> condition, boolean negateCondition)private <E> java.util.List<E>Arrays. getElementsMatchingCondition(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, Condition<E> condition)private <E> java.util.List<E>Arrays. getElementsNotMatchingCondition(AssertionInfo info, Failures failures, Conditions conditions, java.lang.Object array, Condition<E> condition)private <E> java.util.List<E>Iterables. notSatisfyingCondition(java.lang.Iterable<? extends E> actual, Condition<? super E> condition)private <E> java.util.List<E>Iterables. satisfiesCondition(java.lang.Iterable<? extends E> actual, Condition<? super E> condition)
-