public final class ThrowingCheck extends Object implements Check<ThrowingRunnable>
| Modifier and Type | Method and Description |
|---|---|
Result |
evaluate(ThrowingRunnable data,
ResultFactory factory)
Abstract method to delegate implementation of specific check logic to subclasses.
|
String |
toString() |
ThrowingCheck |
withMessage(Check<? super String> check) |
ThrowingCheck |
withMessage(String expectedValue) |
public Result evaluate(ThrowingRunnable data, ResultFactory factory)
Checkevaluate in interface Check<ThrowingRunnable>data - Tested data.factory - Result factory responsible for creating result tree from current node.public ThrowingCheck withMessage(Check<? super String> check)
public ThrowingCheck withMessage(String expectedValue)
Copyright © 2021. All rights reserved.