|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hamcrest.BaseMatcher<T> org.hamcrest.TypeSafeDiagnosingMatcher<T> de.smartics.util.test.matcher.io.AbstractEqualContentAs<T>
T
- the type of the matcher's expected values.
public abstract class AbstractEqualContentAs<T>
A matcher to check that the contents of two stream contain the identical information.
Constructor Summary | |
---|---|
AbstractEqualContentAs(String expectedContent) Convenience constructor if the content is served as a String. |
Method Summary | |
---|---|
void |
describeTo(org.hamcrest.Description description) |
String |
getActualContent() Returns the actual content found. |
protected boolean |
matchesSafely(T actual, org.hamcrest.Description mismatchDescription) |
protected abstract String |
toString(T actual) Turns the instance to its string representation. |
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher |
---|
describeMismatch, matches |
Methods inherited from class org.hamcrest.BaseMatcher |
---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractEqualContentAs(String expectedContent)
expectedContent
- the expected content.
Method Detail |
---|
public final String getActualContent()
null
no value has yet been read.
Since the reader cannot be read twice, the content is stored after the first read.
null
.
public final void describeTo(org.hamcrest.Description description)
SelfDescribing.describeTo(org.hamcrest.Description)
protected final boolean matchesSafely(T actual, org.hamcrest.Description mismatchDescription)
matchesSafely
in class
org.hamcrest.TypeSafeDiagnosingMatcher<T>
TypeSafeDiagnosingMatcher.matchesSafely(java.lang.Object, org.hamcrest.Description)
protected abstract String toString(T actual) throws IllegalArgumentException
actual
- the instance whose string representation is requested.
actual
.
IllegalArgumentException
- if no string representation can be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |