Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 288 for isEqualTo (0.16 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskLoggerTest.kt

        assertThat(formatDuration(-1_499_999_999L)).isEqualTo(" -1 s ")
        assertThat(formatDuration(-1_000_000_000L)).isEqualTo(" -1 s ")
        assertThat(formatDuration(  -999_500_000L)).isEqualTo(" -1 s ")
        assertThat(formatDuration(  -999_499_999L)).isEqualTo("-999 ms")
        assertThat(formatDuration(  -998_500_000L)).isEqualTo("-999 ms")
        assertThat(formatDuration(  -998_499_999L)).isEqualTo("-998 ms")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/InetAddressOrderTest.kt

              ipv6_ab,
              ipv6_fc,
            ),
          )
    
        assertThat(result).isEqualTo(
          listOf(ipv6_ab, ipv4_10_0_0_6, ipv6_fc, ipv4_10_0_0_1, ipv4_10_0_0_4),
        )
      }
    
      @Test fun ipv6Only() {
        val result = reorderForHappyEyeballs(listOf(ipv6_ab, ipv6_fc))
    
        assertThat(result).isEqualTo(
          listOf(ipv6_ab, ipv6_fc),
        )
      }
    
      @Test fun ipv4Only() {
        val result =
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertThat(cache.getUnchecked(entry.getKey())).isEqualTo(newValue);
            assertThat(cache.getUnchecked(newKey)).isEqualTo(entry.getValue());
            // don't let the new entry get GCed
            warmed.add(entryOf(newKey, entry.getValue()));
          }
          assertThat(cache.stats().missCount()).isEqualTo(WARMUP_SIZE);
          checkValidState(cache);
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/CaseFormatTest.java

        assertThat(LOWER_HYPHEN.to(LOWER_CAMEL, "foo-bar")).isEqualTo("fooBar");
      }
    
      public void testLowerHyphenToUpperCamel() {
        assertThat(LOWER_HYPHEN.to(UPPER_CAMEL, "foo")).isEqualTo("Foo");
        assertThat(LOWER_HYPHEN.to(UPPER_CAMEL, "foo-bar")).isEqualTo("FooBar");
      }
    
      public void testLowerHyphenToUpperUnderscore() {
        assertThat(LOWER_HYPHEN.to(UPPER_UNDERSCORE, "foo")).isEqualTo("FOO");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxyTest.kt

        assertThat(response1.body.string()).isEqualTo("abc")
        val request2 = Request.Builder().url(server.url("/")).build()
        val response2 = client.newCall(request2).execute()
        assertThat(response2.body.string()).isEqualTo("def")
    
        // The HTTP calls should share a single connection.
        assertThat(socksProxy.connectionCount()).isEqualTo(1)
      }
    
      @Test
      fun proxySelector() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isNotNull
    import assertk.assertions.isTrue
    import java.io.IOException
    import java.io.InterruptedIOException
    import java.net.HttpURLConnection
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

        assertThat(bodyToHex(body)).isEqualTo("0800")
      }
    
      @Test
      fun byteArray() {
        val contentType = "text/plain".toMediaType()
        val body: RequestBody = "abc".toByteArray().toRequestBody(contentType)
        assertThat(body.contentType()).isEqualTo(contentType)
        assertThat(body.contentLength()).isEqualTo(3)
        assertThat(bodyToHex(body)).isEqualTo("616263")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 24 11:36:14 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  8. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

          |
          |
          """.trimMargin(),
        )
        assertThat(callbacks.remove()).isEqualTo(Event(null, "add", "73857293"))
        assertThat(callbacks.remove()).isEqualTo(Event(null, "remove", "2153"))
        assertThat(callbacks.remove()).isEqualTo(Event(null, "add", "113411"))
      }
    
      @Test
      fun commentsIgnored() {
        consumeEvents(
          """
          |: test stream
          |
          |data: first event
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

      }
    
      public void testCount() {
        assertThat(emptyAccumulator.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyPairedStats.count()).isEqualTo(0);
        assertThat(oneValueAccumulator.count()).isEqualTo(1);
        assertThat(oneValueAccumulatorByAddAllEmptyPairedStats.count()).isEqualTo(1);
        assertThat(twoValuesAccumulator.count()).isEqualTo(2);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  10. mockwebserver/src/test/java/mockwebserver3/CustomDispatcherTest.kt

        // First response is still waiting.
        assertThat(firstResponseCode.get()).isEqualTo(0)
        // Second response is done.
        assertThat(secondResponseCode.get()).isEqualTo(200)
        latch.countDown()
        startsFirst.join()
        // And now it's done!
        assertThat(firstResponseCode.get()).isEqualTo(200)
        // (Still done).
        assertThat(secondResponseCode.get()).isEqualTo(200)
      }
    
      private fun buildRequestThread(
        path: String,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.2K bytes
    - Viewed (1)
Back to top