public class JUnitLambdaProbe extends JUnitProbe
JUnitProbe which makes it Java 8 Lambda friendly.lastFailure| Constructor and Description |
|---|
JUnitLambdaProbe(CheckedSupplier<Boolean> probable) |
JUnitLambdaProbe(CheckedSupplier<Boolean> probable,
CheckedFunction<AssertionError,String> failureDescription) |
JUnitLambdaProbe(CheckedSupplier<Boolean> probable,
CheckedSupplier<String> failureDescription) |
JUnitLambdaProbe(CheckedSupplier<Boolean> 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(CheckedSupplier<Boolean> probable, String failureDescription)
public JUnitLambdaProbe(CheckedSupplier<Boolean> probable, CheckedFunction<AssertionError,String> failureDescription)
public JUnitLambdaProbe(CheckedSupplier<Boolean> probable, CheckedSupplier<String> failureDescription)
public JUnitLambdaProbe(CheckedSupplier<Boolean> 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 © 2003–2021 MuleSoft, Inc.. All rights reserved.