Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for containsExactly (0.26 sec)

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

        tree.put("tree", 3);
        assertThat(tree.keySet()).containsExactly("tree", "google").inOrder();
        assertThat(tree.get("google")).containsExactly(6, 2).inOrder();
    
        TreeMultimap<String, Integer> copy = TreeMultimap.create(tree);
        assertEquals(tree, copy);
        assertThat(copy.keySet()).containsExactly("google", "tree").inOrder();
        assertThat(copy.get("google")).containsExactly(2, 6).inOrder();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        Network<String, String> network = ImmutableNetwork.copyOf(mutableNetwork);
    
        assertThat(network.edgesConnecting("A", "A")).containsExactly("AA");
        assertThat(network.edgesConnecting("A", "B")).containsExactly("AB");
        assertThat(network.edgesConnecting("B", "A")).containsExactly("AB");
      }
    
      @Test
      public void immutableNetworkBuilder_appliesNetworkBuilderConfig() {
        ImmutableNetwork<String, Integer> emptyNetwork =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 5.5K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java

      }
    
      public void testFindClassesToTest_noCorrespondingTestClass() {
        assertThat(findClassesToTest(ImmutableList.of(Foo.class))).containsExactly(Foo.class);
        assertThat(findClassesToTest(ImmutableList.of(Foo.class, Foo2Test.class)))
            .containsExactly(Foo.class);
      }
    
      public void testFindClassesToTest_publicApiOnly() {
        sanityTests.publicApiOnly();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jun 11 21:37:55 GMT 2019
    - 5.3K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java

      }
    
      public void testFindClassesToTest_noCorrespondingTestClass() {
        assertThat(findClassesToTest(ImmutableList.of(Foo.class))).containsExactly(Foo.class);
        assertThat(findClassesToTest(ImmutableList.of(Foo.class, Foo2Test.class)))
            .containsExactly(Foo.class);
      }
    
      public void testFindClassesToTest_publicApiOnly() {
        sanityTests.publicApiOnly();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 11 21:37:55 GMT 2019
    - 5.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .<String, Integer>immutable()
                .putEdgeValue("A", "B", 10)
                .build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
        assertThat(graph.edgeValueOrDefault("A", "B", null)).isEqualTo(10);
      }
    
      @Test
      public void immutableValueGraphBuilder_putEdgeFromEndpointPair() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SynchronizedMultimapTest.java

        multimap.putAll("bar", Arrays.asList(1, 2, 3, 1));
        assertThat(multimap.removeAll("foo")).containsExactly(3, -1, 2, 4, 1).inOrder();
        assertFalse(multimap.containsKey("foo"));
        assertThat(multimap.replaceValues("bar", Arrays.asList(6, 5)))
            .containsExactly(1, 2, 3, 1)
            .inOrder();
        assertThat(multimap.get("bar")).containsExactly(6, 5).inOrder();
      }
    
      public void testSynchronizedSortedSetMultimap() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 8.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/HashBasedTableTest.java

        for (int i = 0; i < 5; i++) {
          table.put("r" + i, "c" + i, "v" + i);
        }
        assertThat(table.rowKeySet()).containsExactly("r0", "r1", "r2", "r3", "r4").inOrder();
        assertThat(table.columnKeySet()).containsExactly("c0", "c1", "c2", "c3", "c4").inOrder();
        assertThat(table.values()).containsExactly("v0", "v1", "v2", "v3", "v4").inOrder();
      }
    
      public void testCreateWithValidSizes() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/ElementOrderTest.java

        assertThat(graph.nodes()).containsExactly(3, 1, 4).inOrder();
      }
    
      // The default ordering is INSERTION unless otherwise specified.
      @Test
      public void nodeOrder_default() {
        MutableGraph<Integer> graph = GraphBuilder.directed().build();
    
        addNodes(graph);
    
        assertThat(graph.nodeOrder()).isEqualTo(insertion());
        assertThat(graph.nodes()).containsExactly(3, 1, 4).inOrder();
      }
    
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        assertThat(graph.nodes()).containsExactly(3, 1, 4).inOrder();
      }
    
      // The default ordering is INSERTION unless otherwise specified.
      @Test
      public void nodeOrder_default() {
        MutableGraph<Integer> graph = GraphBuilder.directed().build();
    
        addNodes(graph);
    
        assertThat(graph.nodeOrder()).isEqualTo(insertion());
        assertThat(graph.nodes()).containsExactly(3, 1, 4).inOrder();
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

        assertThat(Files.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir);
      }
    
      public void testFileTraverser_nonExistingFile() throws Exception {
        File file = new File(rootDir, "file-that-doesnt-exist");
    
        assertThat(Files.fileTraverser().breadthFirst(file)).containsExactly(file);
      }
    
      public void testFileTraverser_file() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Apr 21 20:17:27 GMT 2023
    - 3.4K bytes
    - Viewed (0)
Back to top