T - the object type.public interface AssertThatObject<T>
This interface is returned by the various methods
assertThat exposed by TestSuite.
| Modifier and Type | Method and Description |
|---|---|
void |
is(org.hamcrest.Matcher<? super T> matching)
Check that the object is matching the passed matcher.
|
default void |
is(T compareTo)
Check that the object is the passed one (shortcut to Matcher.equalTo).
|
default void |
isA(Class<? super T> clazz)
Check that the object is of a specific class (or subclasses).
|
default void |
isNot(org.hamcrest.Matcher<T> matching)
Check that the object is not matching the passed matcher.
|
default void |
isNot(T compareTo)
Check that the object is not the passed one.
|
default void |
isNotNull()
Check that the object is not null.
|
default void |
isNull()
Check that the object is null.
|
void is(org.hamcrest.Matcher<? super T> matching)
matching - the matcher.default void is(T compareTo)
compareTo - the value.default void isNot(T compareTo)
compareTo - the valuedefault void isNot(org.hamcrest.Matcher<T> matching)
matching - the matcherdefault void isNull()
default void isNotNull()
Copyright © 2014. All rights reserved.