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(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(Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>AssertionsForClassTypes. allOf(Condition<? super T>... conditions)Creates a newAllOfstatic <T> Condition<T>Java6Assertions. allOf(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(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(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(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>Java6Assertions. anyOf(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(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. as(String newDescription, Object... args)Sets the description of the assertion that is going to be called after.Condition<T>Condition. as(Description newDescription)Sets the description of the assertion that is going to be called after.Condition<T>Condition. describedAs(String newDescription, Object... args)Sets the description of the assertion that is going to be called after.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>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>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.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)Filter 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 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)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>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(Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>AssertionsForClassTypes. allOf(Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>Java6Assertions. allOf(Iterable<? extends Condition<? super T>> conditions)Deprecated.Creates a newAllOfdefault <T> Condition<T>WithAssertions. allOf(Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>Assertions. anyOf(Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>AssertionsForClassTypes. anyOf(Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>Java6Assertions. anyOf(Iterable<? extends Condition<? super T>> conditions)Deprecated.Creates a newAnyOfdefault <T> Condition<T>WithAssertions. anyOf(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.ConditionclassNegative<T>Inverse the condition.classNot<T>Returnstrueif the condition is not satisfied.Fields in org.assertj.core.condition declared as Condition Modifier and Type Field Description (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) 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(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(Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>AnyOf. anyOf(Condition<? super T>... conditions)Creates a newAnyOfprivate static <T> Condition<T>Join. notNull(Condition<T> condition)Methods in org.assertj.core.condition that return types with arguments of type Condition Modifier and Type Method Description protected 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 newAnyOfstatic <T> DoesNotHave<T>DoesNotHave. doesNotHave(Condition<? super T> condition)Creates a new.DoesNotHavestatic <T> Not<T>Not. not(Condition<? super T> condition)Creates a new.Notprivate static <T> Condition<T>Join. notNull(Condition<T> condition)Method parameters in org.assertj.core.condition with type arguments of type Condition Modifier and Type Method Description static <T> Condition<T>AllOf. allOf(Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>AnyOf. anyOf(Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfConstructors 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.JoinNegative(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(Iterable<? extends Condition<? super T>> conditions)AnyOf(Iterable<? extends Condition<? super T>> conditions)Join(Iterable<? extends Condition<? super T>> conditions)Creates a new.Join -
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(Object actual, Object notSatisfies, Condition<?> condition)Creates a new.ElementsShouldBestatic ErrorMessageFactoryElementsShouldBeAtLeast. elementsShouldBeAtLeast(Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldBeAtLeaststatic ErrorMessageFactoryElementsShouldBeAtMost. elementsShouldBeAtMost(Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldBeAtMoststatic ErrorMessageFactoryElementsShouldBeExactly. elementsShouldBeExactly(Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldBeExactlystatic ErrorMessageFactoryElementsShouldHave. elementsShouldHave(Object actual, Object notSatisfies, Condition<?> condition)Creates a new.ElementsShouldHavestatic ErrorMessageFactoryElementsShouldHaveAtLeast. elementsShouldHaveAtLeast(Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldHaveAtLeaststatic ErrorMessageFactoryElementsShouldHaveAtMost. elementsShouldHaveAtMost(Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldHaveAtMoststatic ErrorMessageFactoryElementsShouldHaveExactly. elementsShouldHaveExactly(Object actual, int times, Condition<?> condition)Creates a new.ElementsShouldHaveExactlystatic ErrorMessageFactoryElementsShouldNotBe. elementsShouldNotBe(Object actual, Object satisfies, Condition<?> condition)Creates a new.ElementsShouldNotBestatic ErrorMessageFactoryElementsShouldNotHave. elementsShouldNotHave(Object actual, Object notSatisfies, Condition<?> condition)Creates a new.ElementsShouldNotHavestatic <T> ErrorMessageFactoryShouldBe. shouldBe(T actual, Condition<? super T> condition)Creates a new.ShouldBestatic <T> ErrorMessageFactoryShouldBeAtIndex. shouldBeAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)Creates a new.ShouldBeAtIndexstatic ErrorMessageFactoryConditionAndGroupGenericParameterTypeShouldBeTheSame. shouldBeSameGenericBetweenIterableAndCondition(Object actual, Condition<?> condition)Creates a newConditionAndGroupGenericParameterTypeShouldBeTheSamestatic <K,V>
ErrorMessageFactoryShouldContainEntry. shouldContainEntry(Map<K,V> actual, Condition<?> entryCondition)Creates a new.ShouldContainEntrystatic <K,V>
ErrorMessageFactoryShouldContainEntry. shouldContainEntry(Map<K,V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition)Creates a new.ShouldContainEntrystatic ErrorMessageFactoryShouldContainKey. shouldContainKey(Object actual, Condition<?> keyCondition)Creates a new.ShouldContainKeystatic ErrorMessageFactoryShouldContainValue. shouldContainValue(Object actual, Condition<?> valueCondition)Creates a new.ShouldContainValuestatic <T> ErrorMessageFactoryShouldHave. shouldHave(T actual, Condition<? super T> condition)Creates a new.ShouldHavestatic <T> ErrorMessageFactoryShouldHaveAtIndex. shouldHaveAtIndex(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(Object actual, Condition<?> condition)ElementsShouldBe(Object actual, Object notSatisfies, Condition<?> condition)ElementsShouldBeAtLeast(Object actual, int times, Condition<?> condition)ElementsShouldBeAtMost(Object actual, int times, Condition<?> condition)ElementsShouldBeExactly(Object actual, int times, Condition<?> condition)ElementsShouldHave(Object actual, Object notSatisfies, Condition<?> condition)ElementsShouldHaveAtLeast(Object actual, int times, Condition<?> condition)ElementsShouldHaveAtMost(Object actual, int times, Condition<?> condition)ElementsShouldHaveExactly(Object actual, int times, Condition<?> condition)ElementsShouldNotBe(Object actual, Object satisfies, Condition<?> condition)ElementsShouldNotHave(Object actual, Object notSatisfies, Condition<?> condition)ShouldBe(Object actual, Condition<?> condition)ShouldBeAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)ShouldContainEntry(Map<K,V> actual, Condition<?> entryCondition)ShouldContainEntry(Map<K,V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition)ShouldContainKey(Object actual, Condition<?> keyCondition)ShouldContainValue(Object actual, Condition<?> valueCondition)ShouldHave(Object actual, Condition<?> condition)ShouldHaveAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)ShouldNotBe(Object actual, Condition<?> condition)ShouldNotHave(Object actual, Condition<?> condition)ShouldSatisfy(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, Object array, Condition<E> condition)<T> voidIterables. assertAre(AssertionInfo info, 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, Object array, int times, Condition<E> condition)<E> voidIterables. assertAreAtLeast(AssertionInfo info, 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, Object array, int times, Condition<E> condition)<E> voidIterables. assertAreAtMost(AssertionInfo info, 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, Object array, int times, Condition<E> condition)<E> voidIterables. assertAreExactly(AssertionInfo info, 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, Object array, Condition<E> condition)<E> voidIterables. assertAreNot(AssertionInfo info, 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, 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, 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, Map<K,V> actual, K key, Condition<? super V> valueCondition)Verifies that the givenMapcontains the value for givenkeythat satisfy givenvalueCondition.<K,V>
voidMaps. assertHasEntrySatisfying(AssertionInfo info, Map<K,V> actual, Condition<? super Map.Entry<K,V>> entryCondition)Verifies that the givenMapcontains an entry satisfying givenentryCondition.<K,V>
voidMaps. assertHasEntrySatisfyingConditions(AssertionInfo info, Map<K,V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition)Verifies that the givenMapcontains an entry with key satisfyingkeyConditionand value satisfyingvalueCondition.<K> voidMaps. assertHasKeySatisfying(AssertionInfo info, Map<K,?> actual, Condition<? super K> keyCondition)Verifies that the givenMapcontains an entry with key satisfyingkeyCondition.<V> voidMaps. assertHasValueSatisfying(AssertionInfo info, Map<?,V> actual, Condition<? super V> valueCondition)Verifies that the givenMapcontains an entry with value satisfyingvalueCondition.<E> voidArrays. assertHave(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition)<E> voidIterables. assertHave(AssertionInfo info, 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, Object array, int times, Condition<E> condition)<E> voidIterables. 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> 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, Object array, int times, Condition<E> condition)<E> voidIterables. 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> 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, Object array, int times, Condition<E> condition)<E> voidIterables. 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> 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, 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, 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, String format, 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, List<T> actual, Condition<? super T> condition, Index index)private <E> booleanIterables. conditionIsSatisfiedAtLeastNTimes(Iterable<? extends E> actual, int n, Condition<? super E> condition)private <E> booleanIterables. conditionIsSatisfiedAtMostNTimes(Iterable<? extends E> actual, Condition<? super E> condition, int n)private <E> booleanIterables. 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)
-