org.assertj.core.api
Interface ExtensionPoints<S extends ExtensionPoints<S,A>,A>

Type Parameters:
S - the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
A - the type of the "actual" value.
All Known Subinterfaces:
Assert<S,A>
All Known Implementing Classes:
AbstractArrayAssert, AbstractAssert, AbstractBigDecimalAssert, AbstractBooleanArrayAssert, AbstractBooleanAssert, AbstractByteArrayAssert, AbstractByteAssert, AbstractCharacterAssert, AbstractCharArrayAssert, AbstractCharSequenceAssert, AbstractClassAssert, AbstractComparableAssert, AbstractDateAssert, AbstractDoubleArrayAssert, AbstractDoubleAssert, AbstractEnumerableAssert, AbstractFileAssert, AbstractFloatArrayAssert, AbstractFloatAssert, AbstractInputStreamAssert, AbstractIntArrayAssert, AbstractIntegerAssert, AbstractIterableAssert, AbstractListAssert, AbstractLongArrayAssert, AbstractLongAssert, AbstractMapAssert, AbstractObjectArrayAssert, AbstractObjectAssert, AbstractShortArrayAssert, AbstractShortAssert, AbstractThrowableAssert, AbstractUnevenComparableAssert, BigDecimalAssert, BooleanArrayAssert, BooleanAssert, ByteArrayAssert, ByteAssert, CharacterAssert, CharArrayAssert, CharSequenceAssert, ClassAssert, DateAssert, DoubleArrayAssert, DoubleAssert, FileAssert, FloatArrayAssert, FloatAssert, GenericComparableAssert, InputStreamAssert, IntArrayAssert, IntegerAssert, IterableAssert, ListAssert, LongArrayAssert, LongAssert, MapAssert, ObjectArrayAssert, ObjectAssert, ShortArrayAssert, ShortAssert, StringAssert, ThrowableAssert

public interface ExtensionPoints<S extends ExtensionPoints<S,A>,A>

Mechanism for extending assertion classes.

Author:
Alex Ruiz, Mikhail Mazursky

Method Summary
 S doesNotHave(Condition<? super A> condition)
          Verifies that the actual value does not satisfy the given condition.
 S has(Condition<? super A> condition)
          Verifies that the actual value satisfies the given condition.
 S is(Condition<? super A> condition)
          Verifies that the actual value satisfies the given condition.
 S isNot(Condition<? super A> condition)
          Verifies that the actual value does not satisfy the given condition.
 

Method Detail

is

S is(Condition<? super A> condition)
Verifies that the actual value satisfies the given condition. This method is an alias for has(Condition).

Parameters:
condition - the given condition.
Returns:
this ExtensionPoints object.
Throws:
NullPointerException - if the given condition is null.
AssertionError - if the actual value does not satisfy the given condition.
See Also:
is(Condition)

isNot

S isNot(Condition<? super A> condition)
Verifies that the actual value does not satisfy the given condition. This method is an alias for doesNotHave(Condition).

Parameters:
condition - the given condition.
Returns:
this ExtensionPoints object.
Throws:
NullPointerException - if the given condition is null.
AssertionError - if the actual value satisfies the given condition.
See Also:
isNot(Condition)

has

S has(Condition<? super A> condition)
Verifies that the actual value satisfies the given condition. This method is an alias for is(Condition) .

Parameters:
condition - the given condition.
Returns:
this ExtensionPoints object.
Throws:
NullPointerException - if the given condition is null.
AssertionError - if the actual value does not satisfy the given condition.
See Also:
is(Condition)

doesNotHave

S doesNotHave(Condition<? super A> condition)
Verifies that the actual value does not satisfy the given condition. This method is an alias for isNot(Condition).

Parameters:
condition - the given condition.
Returns:
this ExtensionPoints object.
Throws:
NullPointerException - if the given condition is null.
AssertionError - if the actual value satisfies the given condition.
See Also:
isNot(Condition)


Copyright © 2013–2015 AssertJ. All rights reserved.