Package org.fest.assertions.core
Interface ExtensionPoints<S,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:
AbstractAssert
,AbstractComparableAssert
,AbstractIterableAssert
,AbstractUnevenComparableAssert
,BigDecimalAssert
,BooleanArrayAssert
,BooleanAssert
,ByteArrayAssert
,ByteAssert
,CharacterAssert
,CharArrayAssert
,DateAssert
,DoubleArrayAssert
,DoubleAssert
,FileAssert
,FloatArrayAssert
,FloatAssert
,InputStreamAssert
,IntArrayAssert
,IntegerAssert
,IterableAssert
,ListAssert
,LongArrayAssert
,LongAssert
,MapAssert
,ObjectArrayAssert
,ObjectAssert
,ShortArrayAssert
,ShortAssert
,StringAssert
,ThrowableAssert
public interface ExtensionPoints<S,A>
Mechanism for extending assertion classes.
- Author:
- Alex Ruiz, Mikhail Mazursky
-
Method Summary
Modifier and TypeMethodDescriptiondoesNotHave
(Condition<? super A> condition) Verifies that the actual value does not satisfy the given condition.Verifies that the actual value satisfies the given condition.Verifies that the actual value satisfies the given condition.Verifies that the actual value does not satisfy the given condition.
-
Method Details
-
is
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 isnull
.AssertionError
- if the actual value does not satisfy the given condition.- See Also:
-
isNot
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 isnull
.AssertionError
- if the actual value satisfies the given condition.- See Also:
-
has
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 isnull
.AssertionError
- if the actual value does not satisfy the given condition.- See Also:
-
doesNotHave
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 isnull
.AssertionError
- if the actual value satisfies the given condition.- See Also:
-