Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_ofNullable_edgeCaseValues (0.09 sec)

  1. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            for (int i = 0; i < 1000; i++) {
                OptionalEntity<Integer> opt = OptionalUtil.ofNullable((Integer) null);
                assertFalse(opt.isPresent());
            }
        }
    
        public void test_ofNullable_edgeCaseValues() {
            // Test with special numeric values
            OptionalEntity<Double> nanOpt = OptionalUtil.ofNullable(Double.NaN);
            assertTrue(nanOpt.isPresent());
            assertTrue(Double.isNaN(nanOpt.get()));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top