Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 743 for assertThat (0.12 seconds)

  1. guava-tests/test/com/google/thirdparty/publicsuffix/PublicSuffixTrieTest.java

        // exclusion: !www.ck
    
        assertThat(PublicSuffixPatterns.TRIE.findSuffixIndex(ImmutableList.of("com"))).isEqualTo(0);
        assertThat(PublicSuffixPatterns.TRIE.findSuffixIndex(ImmutableList.of("google", "com")))
            .isEqualTo(1);
        assertThat(PublicSuffixPatterns.TRIE.findSuffixIndex(ImmutableList.of("abc", "google", "com")))
            .isEqualTo(2);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 21:21:59 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        graphAsMutableGraph.addNode(N1);
        assertThat(graphAsMutableGraph.putEdge(N1, N5)).isTrue();
        assertThat(graphAsMutableGraph.putEdge(N4, N1)).isTrue();
        assertThat(graphAsMutableGraph.putEdge(N2, N3)).isTrue();
        assertThat(graph.nodes()).containsExactly(N1, N5, N4, N2, N3).inOrder();
        assertThat(graph.successors(N1)).containsExactly(N5);
        assertThat(graph.successors(N2)).containsExactly(N3);
    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)
  3. guava-tests/test/com/google/common/graph/GraphsTest.java

        Network<Integer, String> transpose = transpose(directedGraph);
        assertThat(transpose).isEqualTo(expectedTranspose);
        assertThat(transpose(transpose)).isSameInstanceAs(directedGraph);
        AbstractNetworkTest.validateNetwork(transpose);
    
        assertThat(transpose.edgesConnecting(N1, N2)).isEmpty();
        assertThat(transpose.edgeConnecting(N1, N2)).isEmpty();
        assertThat(transpose.edgeConnectingOrNull(N1, N2)).isNull();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:06 GMT 2026
    - 30.1K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/CacheRefreshTest.java

        assertThat(cache.getUnchecked(2)).isEqualTo(3);
        expectedReloads++;
        assertThat(loader.getLoadCount()).isEqualTo(expectedLoads);
        assertThat(loader.getReloadCount()).isEqualTo(expectedReloads);
    
        ticker.advance(1, MILLISECONDS);
        assertThat(cache.getUnchecked(0)).isEqualTo(1);
        assertThat(cache.getUnchecked(1)).isEqualTo(-1);
        assertThat(cache.getUnchecked(2)).isEqualTo(3);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactoryTest.java

            assertThat(args.length, is(2));
            assertThat(args[0].getRawClass(), is(sameClass(String.class)));
            assertThat(args[0].getArguments(), is(nullValue()));
            assertThat(args[1].getRawClass(), is(sameClass(Integer.class)));
            assertThat(args[1].getArguments(), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testMethodReturnType() throws Exception {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        assertThat(response.code).isEqualTo(200)
        response.body.close()
        val recordedRequest1 = server.takeRequest()
        assertThat(recordedRequest1.method).isEqualTo("POST")
        assertThat(recordedRequest1.body?.utf8()).isEqualTo(body)
        assertThat(recordedRequest1.headers["Authorization"]).isNull()
        val recordedRequest2 = server.takeRequest()
        assertThat(recordedRequest2.method).isEqualTo("POST")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

      @Test fun durationDefaults() {
        val client = clientTestRule.newClient()
        assertThat(client.callTimeoutMillis).isEqualTo(0)
        assertThat(client.connectTimeoutMillis).isEqualTo(10000)
        assertThat(client.readTimeoutMillis).isEqualTo(10000)
        assertThat(client.writeTimeoutMillis).isEqualTo(10000)
        assertThat(client.pingIntervalMillis).isEqualTo(0)
        assertThat(client.webSocketCloseTimeout).isEqualTo(60_000)
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 13.4K bytes
    - Click Count (1)
  8. okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt

        val headers = mapOf("User-Agent" to "").toHeaders()
        assertThat(headers.value(0)).isEqualTo("")
      }
    
      @Test fun ofMapTrimsKey() {
        val headers = mapOf(" User-Agent " to "OkHttp").toHeaders()
        assertThat(headers.name(0)).isEqualTo("User-Agent")
      }
    
      @Test fun ofMapTrimsValue() {
        val headers = mapOf("User-Agent" to " OkHttp ").toHeaders()
        assertThat(headers.value(0)).isEqualTo("OkHttp")
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          Key key = new Key(1);
          String value = key.toString();
          assertThat(cache.getUnchecked(key)).isSameInstanceAs(value);
          assertThat(cache.asMap().isEmpty()).isFalse();
          cache.invalidateAll();
          assertThat(cache.size()).isEqualTo(0);
          assertThat(cache.asMap().isEmpty()).isTrue();
          assertThat(cache.asMap().containsKey(key)).isFalse();
          assertThat(cache.asMap().containsValue(value)).isFalse();
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(mutableValueGraph);
    
        assertThat(immutableValueGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableValueGraph).isEqualTo(mutableValueGraph);
    
        mutableValueGraph.addNode("B");
        assertThat(immutableValueGraph).isNotEqualTo(mutableValueGraph);
      }
    
      @Test
      public void copyOfImmutableValueGraph_optimized() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 6.4K bytes
    - Click Count (0)
Back to Top