Top Description Methods
org.assertj.core.api

public Interface ExtensionPoints<SELF extends ExtensionPoints<SELF, ACTUAL>, ACTUAL>

Known Direct Subinterfaces
org.assertj.core.api.Assert
Type Parameters
<SELF>
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
<ACTUAL>
the type of the "actual" value.

Mechanism for extending assertion classes.
Authors
Alex Ruiz, Mikhail Mazursky

Method Summary

Modifier and TypeMethod and Description
public SELF

Returns:

this ExtensionPoints object.
doesNotHave
(Condition<? super ACTUAL>
the given condition.
condition
)

Verifies that the actual value does not satisfy the given condition.

public SELF

Returns:

this ExtensionPoints object.
has
(Condition<? super ACTUAL>
the given condition.
condition
)

Verifies that the actual value satisfies the given condition.

public SELF

Returns:

this ExtensionPoints object.
is
(Condition<? super ACTUAL>
the given condition.
condition
)

Verifies that the actual value satisfies the given condition.

public SELF

Returns:

this ExtensionPoints object.
isNot
(Condition<? super ACTUAL>
the given condition.
condition
)

Verifies that the actual value does not satisfy the given condition.

public SELF

Returns:

this ExtensionPoints object.
satisfies
(Condition<? super ACTUAL>
the given condition.
condition
)

Verifies that the actual value satisfies the given condition.

Method Detail

doesNotHaveback to summary
public SELF doesNotHave(Condition<? super ACTUAL> condition)

Verifies that the actual value does not satisfy the given condition. This method is an alias for isNot(Condition).

Parameters
condition:Condition<? super ACTUAL>

the given condition.

Returns:SELF

this ExtensionPoints object.

Exceptions
NullPointerException:
if the given condition is null.
AssertionError:
if the actual value satisfies the given condition.
See Also
isNot(Condition)
hasback to summary
public SELF has(Condition<? super ACTUAL> condition)

Verifies that the actual value satisfies the given condition. This method is an alias for is(Condition) .

Parameters
condition:Condition<? super ACTUAL>

the given condition.

Returns:SELF

this ExtensionPoints object.

Exceptions
NullPointerException:
if the given condition is null.
AssertionError:
if the actual value does not satisfy the given condition.
See Also
is(Condition)
isback to summary
public SELF is(Condition<? super ACTUAL> condition)

Verifies that the actual value satisfies the given condition. This method is an alias for has(Condition).

Parameters
condition:Condition<? super ACTUAL>

the given condition.

Returns:SELF

this ExtensionPoints object.

Exceptions
NullPointerException:
if the given condition is null.
AssertionError:
if the actual value does not satisfy the given condition.
See Also
has(Condition)
isNotback to summary
public SELF isNot(Condition<? super ACTUAL> condition)

Verifies that the actual value does not satisfy the given condition. This method is an alias for doesNotHave(Condition).

Parameters
condition:Condition<? super ACTUAL>

the given condition.

Returns:SELF

this ExtensionPoints object.

Exceptions
NullPointerException:
if the given condition is null.
AssertionError:
if the actual value satisfies the given condition.
See Also
isNot(Condition)
satisfiesback to summary
public SELF satisfies(Condition<? super ACTUAL> condition)

Verifies that the actual value satisfies the given condition. This method is an alias for is(Condition).

Example:

 // Given
Condition<String> fairyTale = new Condition<>(s -> s.startsWith("Once upon a time"), "fairy tale start");
// When
String littleRedCap = "Once upon a time there was a dear little girl ...";
// Then
assertThat(littleRedCap).satisfies(fairyTale);
Parameters
condition:Condition<? super ACTUAL>

the given condition.

Returns:SELF

this ExtensionPoints object.

Exceptions
NullPointerException:
if the given condition is null.
AssertionError:
if the actual value does not satisfy the given condition.
Since
3.11
See Also
is(Condition)