Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testBuilder_withImmutableEntry (0.22 sec)

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

        ImmutableBiMap<String, Integer> map = new Builder<String, Integer>().put("one", 1).build();
        assertMapEquals(map, "one", 1);
        assertMapEquals(map.inverse(), 1, "one");
      }
    
      public void testBuilder_withImmutableEntry() {
        ImmutableBiMap<String, Integer> map =
            new Builder<String, Integer>().put(immutableEntry("one", 1)).build();
        assertMapEquals(map, "one", 1);
      }
    
      public void testBuilder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        builder.put("key", "value");
        assertThat(builder.build().entries()).containsExactly(Maps.immutableEntry("key", "value"));
      }
    
      public void testBuilder_withImmutableEntry() {
        ImmutableListMultimap<String, Integer> multimap =
            new Builder<String, Integer>().put(Maps.immutableEntry("one", 1)).build();
        assertEquals(Arrays.asList(1), multimap.get("one"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        HashHostileComparable v2 = new HashHostileComparable("value2");
        builder.put("key", v1);
        builder.put("key", v2);
        assertThat(builder.build().entries()).hasSize(2);
      }
    
      public void testBuilder_withImmutableEntry() {
        ImmutableSetMultimap<String, Integer> multimap =
            new Builder<String, Integer>().put(Maps.immutableEntry("one", 1)).build();
        assertEquals(ImmutableSet.of(1), multimap.get("one"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        builder.put("key", "value");
        assertThat(builder.build().entries()).containsExactly(Maps.immutableEntry("key", "value"));
      }
    
      public void testBuilder_withImmutableEntry() {
        ImmutableListMultimap<String, Integer> multimap =
            new Builder<String, Integer>().put(Maps.immutableEntry("one", 1)).build();
        assertEquals(Arrays.asList(1), multimap.get("one"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .put("one", 1);
        assertMapEquals(builder.buildKeepingLast(), "one", 1);
        assertThrows(IllegalArgumentException.class, () -> builder.buildOrThrow());
      }
    
      public void testBuilder_withImmutableEntry() {
        ImmutableMap<String, Integer> map =
            new Builder<String, Integer>().put(immutableEntry("one", 1)).buildOrThrow();
        assertMapEquals(map, "one", 1);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .put("one", 1);
        assertMapEquals(builder.buildKeepingLast(), "one", 1);
        assertThrows(IllegalArgumentException.class, () -> builder.buildOrThrow());
      }
    
      public void testBuilder_withImmutableEntry() {
        ImmutableMap<String, Integer> map =
            new Builder<String, Integer>().put(immutableEntry("one", 1)).buildOrThrow();
        assertMapEquals(map, "one", 1);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
Back to top