Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for hasSize (0.08 sec)

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

                .isTrue();
          }
          ArrayList<Object> edgeList = new ArrayList<>(network.edges());
    
          assertThat(network.nodes()).hasSize(NUM_NODES);
          assertThat(network.edges()).hasSize(NUM_EDGES);
          AbstractNetworkTest.validateNetwork(network);
    
          Collections.shuffle(edgeList, gen);
          int numEdgesToRemove = gen.nextInt(NUM_EDGES);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 10 19:42:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

                .isTrue();
          }
          ArrayList<Object> edgeList = new ArrayList<>(network.edges());
    
          assertThat(network.nodes()).hasSize(NUM_NODES);
          assertThat(network.edges()).hasSize(NUM_EDGES);
          AbstractNetworkTest.validateNetwork(network);
    
          Collections.shuffle(edgeList, gen);
          int numEdgesToRemove = gen.nextInt(NUM_EDGES);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 10 19:42:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

        // In the process we made one successful connection attempt.
        assertThat(listener.recordedEventTypes().filter { it == "ConnectStart" }).hasSize(2)
        assertThat(listener.recordedEventTypes().filter { it == "ConnectFailed" }).hasSize(1)
        assertThat(listener.recordedEventTypes().filter { it == "ConnectEnd" }).hasSize(1)
      }
    
      @Test
      fun reachesIpv6WhenIpv4IsDown() {
        serverIpv4.shutdown()
        serverIpv6.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

            type.method(Holder.class.getDeclaredMethod("setList", List.class)).getParameters();
        assertThat(parameters).hasSize(1);
        TypeToken<?> parameterType = parameters.get(0).getType();
        Type[] typeArgs = ((ParameterizedType) parameterType.getType()).getActualTypeArguments();
        assertThat(typeArgs).asList().hasSize(1);
        TypeVariable<?> captured = (TypeVariable<?>) typeArgs[0];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        ServiceManager serviceManager = new ServiceManager(asList(a, b));
        serviceManager.startAsync().awaitHealthy();
        ImmutableMap<Service, Long> startupTimes = serviceManager.startupTimes();
        assertThat(startupTimes).hasSize(2);
        assertThat(startupTimes.get(a)).isAtLeast(150);
        assertThat(startupTimes.get(b)).isAtLeast(353);
      }
    
      public void testServiceStartupDurations() {
        if (isWindows() && isJava8()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/TestUtil.java

       * contains(). Verify that these sets are consistent with the elements of their iterator.
       */
      @CanIgnoreReturnValue
      static <T> Set<T> sanityCheckSet(Set<T> set) {
        assertThat(set).hasSize(Iterators.size(set.iterator()));
        for (Object element : set) {
          assertThat(set).contains(element);
        }
        assertThat(set).doesNotContain(new Object());
        assertThat(set).isEqualTo(ImmutableSet.copyOf(set));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

            type.method(Holder.class.getDeclaredMethod("setList", List.class)).getParameters();
        assertThat(parameters).hasSize(1);
        TypeToken<?> parameterType = parameters.get(0).getType();
        Type[] typeArgs = ((ParameterizedType) parameterType.getType()).getActualTypeArguments();
        assertThat(typeArgs).asList().hasSize(1);
        TypeVariable<?> captured = (TypeVariable<?>) typeArgs[0];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

          if (graph.isDirected()) {
            assertThat(graph.degree(node)).isEqualTo(graph.inDegree(node) + graph.outDegree(node));
            assertThat(graph.predecessors(node)).hasSize(graph.inDegree(node));
            assertThat(graph.successors(node)).hasSize(graph.outDegree(node));
          } else {
            int selfLoopCount = graph.adjacentNodes(node).contains(node) ? 1 : 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        try {
          writeSelfReferencingJarFile(jarFile, "test.txt");
          assertThat(
                  new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader())
                      .scanResources())
              .hasSize(1);
        } finally {
          jarFile.delete();
        }
      }
    
    
      public void testScanFromFile_fileNotExists() throws IOException {
        ClassLoader classLoader = ClassPathTest.class.getClassLoader();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

            assertThat(network.incidentEdges(node).size() + selfLoopCount)
                .isEqualTo(network.inDegree(node) + network.outDegree(node));
            assertThat(network.inEdges(node)).hasSize(network.inDegree(node));
            assertThat(network.outEdges(node)).hasSize(network.outDegree(node));
          } else {
            assertThat(network.predecessors(node)).isEqualTo(network.adjacentNodes(node));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top