Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for assumeTrue (0.12 seconds)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          assumeTrue(getPlatformSystemProperty() == LOOM_PROPERTY)
        }
    
        fun assumeHttp2Support() {
          assumeTrue(getPlatformSystemProperty() != JDK8_PROPERTY)
        }
    
        fun assumeAndroid() {
          assumeTrue(Platform.isAndroid)
        }
    
        fun assumeGraalVMImage() {
          assumeTrue(isGraalVMImage())
        }
    
        fun assumeNotConscrypt() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 15.5K bytes
    - Click Count (1)
  2. android-test/src/androidDeviceTest/java/okhttp/android/test/sni/SniOverrideTest.kt

    import okhttp3.Request
    import org.junit.jupiter.api.Assumptions.assumeTrue
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    /**
     * Tests for SNI overriding on Android.
     */
    @Tag("Remote")
    class SniOverrideTest {
      var client =
        OkHttpClient
          .Builder()
          .build()
    
      @Test
      fun getWithCustomSocketFactory() {
        assumeTrue(Build.VERSION.SDK_INT >= 24)
    
        class CustomSSLSocketFactory(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 26 07:38:51 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallLimitsTest.kt

    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.testing.PlatformRule
    import okio.ByteString.Companion.toByteString
    import org.junit.jupiter.api.Assumptions.assumeTrue
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    @Burst
    class CallLimitsTest(
      private val protocol: Protocol = burstValues(Protocol.H2_PRIOR_KNOWLEDGE, Protocol.HTTP_1_1),
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  4. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

    import org.junit.jupiter.api.Assertions.assertNull
    import org.junit.jupiter.api.Assertions.assertTrue
    import org.junit.jupiter.api.Assertions.fail
    import org.junit.jupiter.api.Assumptions.assumeTrue
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Disabled
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

    import org.hamcrest.BaseMatcher
    import org.hamcrest.CoreMatchers
    import org.hamcrest.Description
    import org.hamcrest.Matcher
    import org.hamcrest.MatcherAssert
    import org.junit.Assume.assumeThat
    import org.junit.Assume.assumeTrue
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 70.7K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

    import okio.buffer
    import okio.fakefilesystem.FakeFileSystem
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Assertions.assertArrayEquals
    import org.junit.jupiter.api.Assumptions.assumeTrue
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Disabled
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

      }
    
      @Test
      fun `Windows cannot read while writing`() {
        Assumptions.assumeTrue(windows)
    
        set("k1", "a", "a")
        val editor = cache.edit("k1")!!
        assertThat(cache["k1"]).isNull()
        editor.commit()
      }
    
      @Test
      fun `Windows cannot write while reading`() {
        Assumptions.assumeTrue(windows)
    
        set("k1", "a", "a")
        val snapshot = cache["k1"]!!
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 59.4K bytes
    - Click Count (0)
Back to Top