hamcrestMatcher.describeTo(strDescription);
description.appendText(strDescription.toString());
}
public Object getInnerValue() {
Matcher innerMatcher = hamcrestMatcher;
while (innerMatcher instanceof ext.jtester.hamcrest.core.Is
|| innerMatcher instanceof ext.jtester.hamcrest.core.IsNot) {
innerMatcher = getField(innerMatcher.getClass(), Matcher.class, innerMatcher);
}
if (innerMatcher instanceof IsEqual || innerMatcher instanceof IsSame
|| innerMatcher instanceof OrderingComparison) {
return getField(innerMatcher.getClass(), Object.class, innerMatcher);
} else {
return null;
}
}