Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(list.set(0, false)).isTrue();
        assertThrows(NullPointerException.class, () -> list.set(0, null));
        assertThrows(IndexOutOfBoundsException.class, () -> list.set(1, true));
      }
    
      public void testAsListCanonicalValues() {
        List<Boolean> list = Booleans.asList(true, false);
        assertThat(list.get(0)).isSameInstanceAs(true);
        assertThat(list.get(1)).isSameInstanceAs(false);
        @SuppressWarnings("deprecation")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
Back to top