- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testOf_null (0.07 sec)
-
guava-tests/test/com/google/common/base/OptionalTest.java
Optional<String> optionalName = Optional.absent(); assertFalse(optionalName.isPresent()); } public void testOf() { assertEquals("training", Optional.of("training").get()); } public void testOf_null() { assertThrows(NullPointerException.class, () -> Optional.of(null)); } public void testFromNullable() { Optional<String> optionalName = Optional.fromNullable("bob");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 10.5K bytes - Viewed (0)