Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for Bar (0.02 sec)

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

        map.put("bar", 4);
        assertEquals("[bar=1, foo=2, bar=3, bar=4]", map.entries().toString());
        assertThat(map.keys()).containsExactly("bar", "foo", "bar", "bar").inOrder();
        map.keys().remove("bar"); // bar is no longer the first key!
        assertEquals("{foo=[2], bar=[3, 4]}", map.toString());
      }
    
      public void testLinkedValues() {
        Multimap<String, Integer> map = create();
        map.put("bar", 1);
        map.put("foo", 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        assertThat(multimap.keySet()).containsExactly("foo", "bar", "cow").inOrder();
        assertThat(multimap.removeAll("foo")).containsExactly(6, 7).inOrder();
        assertThat(multimap.keySet()).containsExactly("bar", "cow").inOrder();
        assertTrue(multimap.remove("bar", 4));
        assertThat(multimap.keySet()).containsExactly("bar", "cow").inOrder();
        assertTrue(multimap.remove("bar", 1));
        assertThat(multimap.keySet()).contains("cow");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertEquals(Arrays.asList(4, 5), multimap.get("bar"));
        assertEquals(6, multimap.size());
      }
    
      public void testBuilderPutAllMultimapWithDuplicates() {
        Multimap<String, Integer> toPut = LinkedListMultimap.create();
        toPut.put("foo", 1);
        toPut.put("bar", 4);
        toPut.put("foo", 2);
        toPut.put("foo", 1);
        toPut.put("bar", 5);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

        assertEquals(control("bar", 2), entry("bar", 2));
        assertFalse(control("foo", 1).equals(entry("foo", 2)));
        assertFalse(foo1.equals(control("bar", 1)));
        assertFalse(foo1.equals(new Object()));
        assertFalse(foo1.equals(null));
      }
    
      public void testEqualsNull() {
        assertEquals(control(NK, 1), entry(NK, 1));
        assertEquals(control("bar", NV), entry("bar", NV));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        assertEquals("[(bar,1)=b, (foo,1)=a, (foo,3)=c]", table.cellSet().toString());
      }
    
      public void testRowKeySetToString_ordered() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals("[bar, foo]", table.rowKeySet().toString());
      }
    
      public void testValuesToString_ordered() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        Table<Character, Integer, String> expectedTable = HashBasedTable.create();
        expectedTable.put('a', 1, "foo");
        expectedTable.put('b', 1, "bar");
        expectedTable.put('a', 2, "baz");
        Table<Character, Integer, String> otherTable = HashBasedTable.create();
        otherTable.put('b', 1, "bar");
        otherTable.put('a', 2, "baz");
        assertEquals(expectedTable, builder.putAll(otherTable).build());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

        assertEquals("bar x 2", entry("bar", 2).toString());
      }
    
      public void testToStringNull() {
        assertEquals("null", entry(NE, 1).toString());
        assertEquals("null x 2", entry(NE, 2).toString());
      }
    
      public void testEquals() {
        assertEquals(control("foo", 1), entry("foo", 1));
        assertEquals(control("bar", 2), entry("bar", 2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

        assertEquals("bar x 2", entry("bar", 2).toString());
      }
    
      public void testToStringNull() {
        assertEquals("null", entry(NE, 1).toString());
        assertEquals("null x 2", entry(NE, 2).toString());
      }
    
      public void testEquals() {
        assertEquals(control("foo", 1), entry("foo", 1));
        assertEquals(control("bar", 2), entry("bar", 2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

            Files.writeString(defPath, "foo=bar");
            Path envPath = userDirectory.resolve("env-ci.properties");
            Files.writeString(envPath, "foo=bar-env\nfoo-env=bar\n");
    
            Properties p = new Properties();
            p.put("user.home", userDirectory.toString());
            MavenPropertiesLoader.loadProperties(p, mavenUserProps, p::getProperty, false);
            assertEquals("bar", p.getProperty("foo"));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertEquals(Arrays.asList(4, 5), multimap.get("bar"));
        assertEquals(6, multimap.size());
      }
    
      public void testBuilderPutAllMultimapWithDuplicates() {
        Multimap<String, Integer> toPut = LinkedListMultimap.create();
        toPut.put("foo", 1);
        toPut.put("bar", 4);
        toPut.put("foo", 2);
        toPut.put("foo", 1);
        toPut.put("bar", 5);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top