Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for expectFailureFromJdkVersion (0.34 sec)

  1. okhttp-testing-support/src/test/kotlin/okhttp3/testing/PlatformRuleTest.kt

      }
    
      @Test
      fun testGreenCase() {
      }
    
      @Test
      fun testGreenCaseFailingOnLater() {
        platform.expectFailureFromJdkVersion(PlatformVersion.majorVersion + 1)
      }
    
      @Test
      fun failureCase() {
        platform.expectFailureFromJdkVersion(PlatformVersion.majorVersion)
    
        check(false)
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          expectFailure(platformMatches(CORRETTO_PROPERTY))
        }
    
        fun expectFailureOnOpenJSSEPlatform() {
          expectFailure(platformMatches(OPENJSSE_PROPERTY))
        }
    
        fun expectFailureFromJdkVersion(majorVersion: Int) {
          if (!TestUtil.isGraalVmImage) {
            expectFailure(fromMajor(majorVersion))
          }
        }
    
        fun expectFailureOnJdkVersion(majorVersion: Int) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top