Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 321 - 330 of 524 for isEqualTo (0.06 seconds)

  1. android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

                return ("{" + c + "}").toCharArray();
              }
            };
        EscaperAsserts.assertBasic(wrappingEscaper);
        // '[' and '@' lie either side of [A-Z].
        assertThat(wrappingEscaper.escape("[FOO@BAR]")).isEqualTo("{[}FOO{@}BAR{]}");
      }
    
      public void testSafeRange_maxLessThanMin() throws IOException {
        // Basic escaping of unsafe chars (wrap them in {,}'s)
        CharEscaper wrappingEscaper =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 18 15:41:04 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

      }
    
      public void testToString() {
        assertThat(entry("foo", 1).toString()).isEqualTo("foo=1");
      }
    
      public void testToStringNull() {
        assertThat(entry(NK, 1).toString()).isEqualTo("null=1");
        assertThat(entry("foo", NV).toString()).isEqualTo("foo=null");
        assertThat(entry(NK, NV).toString()).isEqualTo("null=null");
      }
    
      public void testEquals() {
        Entry<String, Integer> foo1 = entry("foo", 1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt

        assumeNetwork()
    
        val request = Request.Builder().url("https://mozilla.org/robots.txt").build()
    
        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
      }
    
      @Test
      fun testBuildIfSupported() {
        val actual = OpenJSSEPlatform.buildIfSupported()
        assertThat(actual).isNotNull()
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/CharSinkTester.java

        sink.writeLines(lines.stream(), separator);
    
        assertContainsExpectedLines(separator);
      }
    
      private void assertContainsExpectedString() throws IOException {
        assertThat(factory.getSinkContents()).isEqualTo(expected);
      }
    
      private void assertContainsExpectedLines(String separator) throws IOException {
        String expected = expectedLines.isEmpty() ? "" : Joiner.on(separator).join(expectedLines);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        // already finished (we explicitly set the result of it above).
        listenableFuture.addListener(singleCallListener, directExecutor());
        assertThat(listenableFuture.get()).isEqualTo(DATA1);
    
        // 'spy' should have been ignored since 'abstractFuture' was done before
        // a listener was added.
        assertFalse(spy.wasExecuted);
        assertTrue(singleCallListener.wasCalled());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

    @NullUnmarked
    public class FuturesGetDoneTest extends TestCase {
      public void testSuccessful() throws ExecutionException {
        assertThat(getDone(immediateFuture("a"))).isEqualTo("a");
      }
    
      public void testSuccessfulNull() throws ExecutionException {
        assertThat(getDone(immediateVoidFuture())).isEqualTo(null);
      }
    
      public void testFailed() {
        Exception failureCause = new Exception();
        ExecutionException expected =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 01:35:55 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

        EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(Currency.class);
        assertTrue(bimap.isEmpty());
        assertThat(bimap.toString()).isEqualTo("{}");
        assertEquals(HashBiMap.create(), bimap);
        bimap.put(Currency.DOLLAR, "dollar");
        assertThat(bimap.get(Currency.DOLLAR)).isEqualTo("dollar");
        assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar"));
      }
    
      public void testCreateFromMap() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

        assertEquals(3, hashCodes.size());
      }
    
      public void testToString() {
        assertThat(SIP_WITH_KEY.toString()).isEqualTo("Hashing.sipHash24(" + K0 + ", " + K1 + ")");
        assertThat(SIP_WITHOUT_KEY.toString()).isEqualTo("Hashing.sipHash24(" + K0 + ", " + K1 + ")");
        assertThat(sipHash24(20, 13).toString()).isEqualTo("Hashing.sipHash24(20, 13)");
      }
    
      private static void assertSip(String input, long expected) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

        assertEquals(3, hashCodes.size());
      }
    
      public void testToString() {
        assertThat(SIP_WITH_KEY.toString()).isEqualTo("Hashing.sipHash24(" + K0 + ", " + K1 + ")");
        assertThat(SIP_WITHOUT_KEY.toString()).isEqualTo("Hashing.sipHash24(" + K0 + ", " + K1 + ")");
        assertThat(sipHash24(20, 13).toString()).isEqualTo("Hashing.sipHash24(20, 13)");
      }
    
      private static void assertSip(String input, long expected) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/base/FunctionsTest.java

      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToStringFunction_apply() {
        assertThat(Functions.toStringFunction().apply(3)).isEqualTo("3");
        assertThat(Functions.toStringFunction().apply("hiya")).isEqualTo("hiya");
        assertThat(
                Functions.toStringFunction()
                    .apply(
                        new Object() {
                          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
Back to Top