Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for hasSize (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

          String value = String.valueOf(i);
          builder.put(key, value);
          expected.put(key, value);
        }
        ImmutableMap<Integer, String> map = builder.buildKeepingLast();
        assertThat(map).hasSize(500);
        assertThat(map).containsExactlyEntriesIn(expected).inOrder();
      }
    
      // This method tests the int case.
      public void testBuildKeepingLast_bigTable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. 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()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

          String value = String.valueOf(i);
          builder.put(key, value);
          expected.put(key, value);
        }
        ImmutableMap<Integer, String> map = builder.buildKeepingLast();
        assertThat(map).hasSize(500);
        assertThat(map).containsExactlyEntriesIn(expected).inOrder();
      }
    
      // This method tests the int case.
      public void testBuildKeepingLast_bigTable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  8. android/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();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            if (cached != null
                    // if the POM has no file, we cached a missing artifact, only return the cached data if no update forced
                    && (!request.isForceUpdate() || hasFile(cached.getPomArtifact()))) {
                return cached;
            }
    
            List<Dependency> dependencies;
    
            List<Dependency> managedDependencies = null;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top