Remove CheckedValue.orElseThrow(Supplier)
[yangtools.git] / common / concepts / src / test / java / org / opendaylight / yangtools / concepts / CheckedValueTest.java
index 9ebaee5ef5afc61b3abc4e1c6672312089b961e1..98aae1e35f66cf1df5f10c603c2c9382211fbcd6 100644 (file)
@@ -136,20 +136,6 @@ public class CheckedValueTest {
         verifyNoInteractions(mapper);
     }
 
-    @Test
-    public void testOrElseThrow() {
-        final String foo = "foo";
-        assertSame(foo, CheckedValue.ofValue(foo)
-            .orElseThrow((Supplier<NullPointerException>)NullPointerException::new));
-    }
-
-    @Test
-    public void testThrowableOrElseThrow() {
-        final CheckedValue<?, ?> value = CheckedValue.ofException(new NullPointerException("foo"));
-        final Exception mock = mock(Exception.class);
-        assertThrows(mock.getClass(), () -> value.orElseThrow(() -> mock));
-    }
-
     @Test
     public void testOrElseGet() {
         final String foo = "foo";