-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
cafe-latte/src/test/java/systems/raptor/cafe_latte/handlers/HandlerCaseTest.java
Lines 92 to 106 in 3045ae4
| @Test | |
| public void ignoreErrorsNoTransferTest() { | |
| Condition returnValue = ignoreErrors(() -> {}); | |
| assertNull(returnValue); | |
| } | |
| @Test | |
| public void ignoreErrorsTransferTest() { | |
| Error error = new Error(); | |
| Condition returnValue = ignoreErrors(() -> { | |
| signal(error); | |
| }); | |
| assertNotNull(returnValue); | |
| assertEquals(returnValue, error); | |
| } |
This should return a pair of a nullable return value and a nullable error to better map to the CL API.
Metadata
Metadata
Assignees
Labels
No labels