Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 45 for hasSize (0.06 seconds)

  1. 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();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 23.1K bytes
    - Click Count (0)
  2. 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();
        }
      }
    
      @AndroidIncompatible // Path (for symlink creation)
    
      public void testScanDirectory_symlinkCycle() throws IOException {
        if (isWindows()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            };
        ListenableFuture<@Nullable Void> future = submit(runnable, executor);
        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            };
        ListenableFuture<@Nullable Void> future = submit(runnable, executor);
        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        assertThat(graphAsMutableGraph.removeEdge(N1, N2)).isTrue();
        assertThat(graph.successors(N1)).isEmpty();
        assertThat(graph.predecessors(N1)).containsExactly(N2);
        assertThat(graph.edges()).hasSize(1);
    
        assertThat(graphAsMutableGraph.removeEdge(N2, N1)).isTrue();
        assertThat(graph.successors(N1)).isEmpty();
        assertThat(graph.predecessors(N1)).isEmpty();
        assertThat(graph.edges()).isEmpty();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<Holder<?>> type = new TypeToken<Holder<?>>() {};
        ImmutableList<Parameter> parameters =
            type.method(Holder.class.getDeclaredMethod("setList", List.class)).getParameters();
        assertThat(parameters).hasSize(1);
        TypeToken<?> parameterType = parameters.get(0).getType();
        assertEquals(List.class, parameterType.getRawType());
        assertFalse(
            parameterType.getType().toString(),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

        Network<Integer, EndpointPair<Integer>> asNetwork = graph.asNetwork();
        AbstractNetworkTest.validateNetwork(asNetwork);
        assertThat(graph.nodes()).isEqualTo(asNetwork.nodes());
        assertThat(graph.edges()).hasSize(asNetwork.edges().size());
        assertThat(graph.nodeOrder()).isEqualTo(asNetwork.nodeOrder());
        assertThat(graph.isDirected()).isEqualTo(asNetwork.isDirected());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        Thread.interrupted();
        LocalCache.logger.removeHandler(logHandler);
      }
    
      private Throwable popLoggedThrowable() {
        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
        assertThat(logRecords).hasSize(1);
        LogRecord logRecord = logRecords.get(0);
        logHandler.clear();
        return logRecord.getThrown();
      }
    
      private void checkNothingLogged() {
        assertThat(logHandler.getStoredLogRecords()).isEmpty();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        Network<Integer, EndpointPair<Integer>> asNetwork = graph.asNetwork();
        AbstractNetworkTest.validateNetwork(asNetwork);
        assertThat(graph.nodes()).isEqualTo(asNetwork.nodes());
        assertThat(graph.edges()).hasSize(asNetwork.edges().size());
        assertThat(graph.nodeOrder()).isEqualTo(asNetwork.nodeOrder());
        assertThat(graph.isDirected()).isEqualTo(asNetwork.isDirected());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 20.5K bytes
    - Click Count (0)
  10. 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();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 28.9K bytes
    - Click Count (0)
Back to Top