public abstract class JUnitProbe extends Object implements Probe
Probe
for cases in which the isSatisfied()
method can throw
exceptions or will perform JUnit/Hamcrest assertions, which result
in AssertionError
This implementation automatically takes care of catching those exceptions/errors
and returning false
in that caseConstructor and Description |
---|
JUnitProbe() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSatisfied()
Invokes
test() and returns its outcome, provided that it didn't
threw any Exception or AssertionError . |
protected abstract boolean |
test()
Implement this method to provide your actual probing logic
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeFailure
public final boolean isSatisfied()
test()
and returns its outcome, provided that it didn't
threw any Exception
or AssertionError
.
Returns false
otherwiseisSatisfied
in interface Probe
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.