public final class ThrowingCheck extends 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()
Enforce to implement toString() in every subclass.
|
ThrowingCheck |
withMessage(Check<? super String> check) |
ThrowingCheck |
withMessage(String expectedValue) |
public Result evaluate(ThrowingRunnable data, ResultFactory factory)
Checkevaluate in class 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)
public String toString()
ChecktoString in class Check<ThrowingRunnable>Copyright © 2021. All rights reserved.