Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 484 for testOf (0.25 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      @GwtIncompatible // SerializableTester
      public void testOf_subSetSerialization() {
        SortedSet<String> set = of("e", "f", "b", "d", "c");
        SerializableTester.reserializeAndAssert(set.subSet("c", "e"));
      }
    
      public void testOf_first() {
        SortedSet<String> set = of("e", "f", "b", "d", "c");
        assertEquals("b", set.first());
      }
    
      public void testOf_last() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      @GwtIncompatible // SerializableTester
      public void testOf_subSetSerialization() {
        SortedSet<String> set = of("e", "f", "b", "d", "c");
        SerializableTester.reserializeAndAssert(set.subSet("c", "e"));
      }
    
      public void testOf_first() {
        SortedSet<String> set = of("e", "f", "b", "d", "c");
        assertEquals("b", set.first());
      }
    
      public void testOf_last() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        assertTrue(map.isEmpty());
        assertSame(map, ImmutableClassToInstanceMap.of());
        assertSame(map, ImmutableClassToInstanceMap.copyOf(map));
      }
    
      public void testOf_zero() {
        assertTrue(ImmutableClassToInstanceMap.of().isEmpty());
      }
    
      public void testOf_one() {
        ImmutableClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.of(int.class, 1);
        assertEquals(1, map.size());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        assertTrue(map.isEmpty());
        assertSame(map, ImmutableClassToInstanceMap.of());
        assertSame(map, ImmutableClassToInstanceMap.copyOf(map));
      }
    
      public void testOf_zero() {
        assertTrue(ImmutableClassToInstanceMap.of().isEmpty());
      }
    
      public void testOf_one() {
        ImmutableClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.of(int.class, 1);
        assertEquals(1, map.size());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_T_present() {
        assertEquals("a", Optional.of("a").or("default"));
      }
    
      public void testOr_T_absent() {
        assertEquals("default", Optional.absent().or("default"));
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_supplier_present() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/OptionalTest.java

      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_T_present() {
        assertEquals("a", Optional.of("a").or("default"));
      }
    
      public void testOr_T_absent() {
        assertEquals("default", Optional.absent().or("default"));
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_supplier_present() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableListMultimap.class);
        tester.ignore(ImmutableListMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableListMultimap.of());
        tester.testAllPublicInstanceMethods(ImmutableListMultimap.of("a", 1));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableListMultimap.class);
        tester.ignore(ImmutableListMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableListMultimap.of());
        tester.testAllPublicInstanceMethods(ImmutableListMultimap.of("a", 1));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableSetMultimap.class);
        tester.ignore(ImmutableSetMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of());
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of("a", 1));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableSetMultimap.class);
        tester.ignore(ImmutableSetMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of());
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of("a", 1));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 24.9K bytes
    - Viewed (0)
Back to top