public class JUnitLambdaProbe extends JUnitProbe
JUnitProbe which makes it Java 8 Lambda friendly.| Constructor and Description |
|---|
JUnitLambdaProbe(BooleanSupplier probable) |
JUnitLambdaProbe(BooleanSupplier probable,
String failureDescription) |
| Modifier and Type | Method and Description |
|---|---|
String |
describeFailure()
Describes the cause of the criteria failure for further analysis.
|
protected boolean |
test()
Implement this method to provide your actual probing logic
|
isSatisfiedpublic JUnitLambdaProbe(BooleanSupplier probable, String failureDescription)
public JUnitLambdaProbe(BooleanSupplier probable)
public String describeFailure()
ProbedescribeFailure in interface ProbedescribeFailure in class JUnitProbeprotected boolean test()
throws Exception
JUnitProbetest in class JUnitProbetrue if the acceptance conditions was met. false otherwiseExceptionCopyright © 2018 MuleSoft, Inc.. All rights reserved.