Package org.assertj.core.internal
Class Conditions
java.lang.Object
org.assertj.core.internal.Conditions
Verifies that a value satisfies a
Condition.- Author:
- Alex Ruiz
-
Method Summary
Modifier and TypeMethodDescription<T> voidassertDoesNotHave(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value does not satisfy the given.Condition<T> voidassertHas(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value satisfies the given.Condition<T> voidassertIs(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value satisfies the given.Condition<T> voidassertIsNot(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value does not satisfy the given.ConditionvoidassertIsNotNull(Condition<?> condition) Asserts the givenis not null.ConditionvoidassertIsNotNull(Condition<?> condition, String format, Object... args) Asserts the givenis not null.Condition<T> voidassertSatisfies(AssertionInfo info, T actual, Condition<? super T> condition) static Conditionsinstance()Returns the singleton instance of this class.
-
Method Details
-
instance
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
assertIs
Asserts that the actual value satisfies the given.Condition- Type Parameters:
T- the type of the actual value and the type of values that givenConditiontakes.- Parameters:
info- contains information about the assertion.actual- the actual value.condition- the givenCondition.- Throws:
NullPointerException- if the givenConditionisnull.AssertionError- if the actual value does not satisfy the givenCondition.
-
assertIsNot
Asserts that the actual value does not satisfy the given.Condition- Type Parameters:
T- the type of the actual value and the type of values that givenConditiontakes.- Parameters:
info- contains information about the assertion.actual- the actual value.condition- the givenCondition.- Throws:
NullPointerException- if the givenConditionisnull.AssertionError- if the actual value satisfies the givenCondition.
-
assertHas
Asserts that the actual value satisfies the given.Condition- Type Parameters:
T- the type of the actual value and the type of values that givenConditiontakes.- Parameters:
info- contains information about the assertion.actual- the actual value.condition- the givenCondition.- Throws:
NullPointerException- if the givenConditionisnull.AssertionError- if the actual value does not satisfy the givenCondition.
-
assertDoesNotHave
Asserts that the actual value does not satisfy the given.Condition- Type Parameters:
T- the type of the actual value and the type of values that givenConditiontakes.- Parameters:
info- contains information about the assertion.actual- the actual value.condition- the givenCondition.- Throws:
NullPointerException- if the givenConditionisnull.AssertionError- if the actual value satisfies the givenCondition.
-
assertSatisfies
-
assertIsNotNull
Asserts the givenis not null.Condition- Parameters:
condition- the givenCondition.- Throws:
NullPointerException- if the givenConditionisnull.
-
assertIsNotNull
Asserts the givenis not null.Condition- Parameters:
condition- the givenCondition.format- as inString.format(String, Object...)args- as inString.format(String, Object...)- Throws:
NullPointerException- if the givenConditionisnull.
-