- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 19 for hasSize (0.16 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
assertThat(eventRecorder.recordedEventTypes().filter { it == ConnectStart::class }).hasSize(2) assertThat(eventRecorder.recordedEventTypes().filter { it == ConnectFailed::class }).hasSize(1) assertThat(eventRecorder.recordedEventTypes().filter { it == ConnectEnd::class }).hasSize(1) } @Test fun reachesIpv6WhenIpv4IsDown() { serverIpv4.close() serverIpv6.enqueue(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
new EqualsTester() .addEqualityGroup(cache.asMap().keySet(), keys) .addEqualityGroup(ImmutableSet.of()) .testEquals(); assertThat(keys).hasSize(WARMUP_SIZE); for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) { Object key = warmed.get(i - WARMUP_MIN).getKey(); assertThat(keys.contains(key)).isTrue(); assertThat(keys.remove(key)).isTrue();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15.4K bytes - Click Count (0) -
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()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 25.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertThat(map.replace(one, three, two)).isTrue(); assertThat(map.get(one)).isSameInstanceAs(two); assertThat(map).hasSize(3); map.clear(); assertThat(map.isEmpty()).isTrue(); assertThat(map).isEmpty(); cache.getUnchecked(one); assertThat(map).hasSize(1); assertThat(map.get(one)).isSameInstanceAs(one); assertThat(map.containsKey(one)).isTrue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 13.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertThat(map.replace(one, three, two)).isTrue(); assertThat(map.get(one)).isSameInstanceAs(two); assertThat(map).hasSize(3); map.clear(); assertThat(map.isEmpty()).isTrue(); assertThat(map).isEmpty(); cache.getUnchecked(one); assertThat(map).hasSize(1); assertThat(map.get(one)).isSameInstanceAs(one); assertThat(map.containsKey(one)).isTrue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 13.1K bytes - Click Count (0) -
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()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 25.6K bytes - Click Count (0) -
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;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 17.3K bytes - Click Count (0) -
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) -
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) -
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)