Skip to content

Commit c89d459

Browse files
author
Pscheidl Pavel
committed
Assertion for silent exception conversion test
1 parent bf7c922 commit c89d459

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/java/com/github/pscheidl/fortee/failsafe/SemisafeInterceptorTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ public void testThrowSilentException() {
8181

8282
@Test
8383
public void testConvertSilentException() {
84-
semiGuardedBean.convertSilentException();
84+
final Optional<String> optionalWithStringInside = semiGuardedBean.convertSilentException();
85+
Assert.assertNotNull(optionalWithStringInside);
86+
Assert.assertFalse(optionalWithStringInside.isPresent());
8587
}
8688

8789
}

0 commit comments

Comments
 (0)