Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for containsExactlyElementsIn (0.24 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        addNode(N1);
        ImmutableSet<Integer> nodes = ImmutableSet.copyOf(networkAsMutableNetwork.nodes());
        assertFalse(networkAsMutableNetwork.addNode(N1));
        assertThat(networkAsMutableNetwork.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @Test
      public void removeNode_existingNode() {
        assume().that(graphIsMutable()).isTrue();
    
        addEdge(N1, N2, E12);
        addEdge(N4, N1, E41);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        addNode(N1);
        ImmutableSet<Integer> nodes = ImmutableSet.copyOf(graph.nodes());
        assertThat(graphAsMutableGraph.addNode(N1)).isFalse();
        assertThat(graph.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @Test
      public void removeNode_existingNode() {
        assume().that(graphIsMutable()).isTrue();
    
        putEdge(N1, N2);
        putEdge(N4, N1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/ClassPathTest.java

          assertThat(location.scanResources()).containsExactlyElementsIn(resources);
        }
      }
    
      public void testLocationsFrom_idempotentLocations() {
        ImmutableSet<ClassPath.LocationInfo> locations =
            ClassPath.locationsFrom(getClass().getClassLoader());
        assertThat(ClassPath.locationsFrom(getClass().getClassLoader()))
            .containsExactlyElementsIn(locations);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        ImmutableSortedSet<Integer> asSet = RANGE_SET_ONE.asSet(DiscreteDomain.integers());
        assertEquals(expectedSet, asSet);
        assertThat(asSet).containsExactlyElementsIn(expectedSet).inOrder();
        assertTrue(asSet.containsAll(expectedSet));
        SerializableTester.reserializeAndAssert(asSet);
      }
    
      public void testAsSetHeadSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        multimap.put("bar", 3);
        multimap.put("foo", 2);
        LinkedListMultimap<String, Integer> copy = LinkedListMultimap.create(multimap);
        assertEquals(multimap, copy);
        assertThat(copy.entries()).containsExactlyElementsIn(multimap.entries()).inOrder();
      }
    
      public void testCreateFromSize() {
        LinkedListMultimap<String, Integer> multimap = LinkedListMultimap.create(20);
        multimap.put("foo", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

                      }
                    });
            assertWithMessage("Sets.combinations(%s, %s)", sampleSet, k)
                .that(Sets.combinations(sampleSet, k))
                .containsExactlyElementsIn(expected)
                .inOrder();
          }
        }
      }
    
      private static <E> Set<E> set(E... elements) {
        return ImmutableSet.copyOf(elements);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        return ImmutableGraph.copyOf(graph);
      }
    
      private static void assertEqualCharNodes(Iterable<Character> result, String expectedCharacters) {
        assertThat(ImmutableList.copyOf(result))
            .containsExactlyElementsIn(Chars.asList(expectedCharacters.toCharArray()))
            .inOrder();
      }
    
      private static class RequestSavingGraph implements SuccessorsFunction<Character> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/TraverserTest.java

        return ImmutableGraph.copyOf(graph);
      }
    
      private static void assertEqualCharNodes(Iterable<Character> result, String expectedCharacters) {
        assertThat(ImmutableList.copyOf(result))
            .containsExactlyElementsIn(Chars.asList(expectedCharacters.toCharArray()))
            .inOrder();
      }
    
      private static class RequestSavingGraph implements SuccessorsFunction<Character> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        Object[] lookupKeys = new Object[] {new Object(), new Object(), new Object()};
        Map<Object, Object> result = cache.getAll(asList(lookupKeys));
        assertThat(result.keySet()).containsExactlyElementsIn(asList(lookupKeys));
        for (Entry<Object, Object> entry : result.entrySet()) {
          Object key = entry.getKey();
          Object value = entry.getValue();
          assertSame(value, result.get(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
Back to top