Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for fail (0.15 sec)

  1. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

            fail("Encoding $component $codePoint using $encoding")
          }
          return
        }
    
        // Check that the URI and HttpURL have the exact same escaping.
        if (toAndFromUri != httpUrl) {
          fail("Encoding $component $codePoint using $encoding")
        }
        if (uri.toString() != httpUrl.toString()) {
          fail("Encoding $component $codePoint using $encoding")
        }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt

     */
    package mockwebserver3.junit4
    
    import assertk.assertThat
    import assertk.assertions.isTrue
    import java.net.ConnectException
    import java.util.concurrent.atomic.AtomicBoolean
    import org.junit.Assert.fail
    import org.junit.Test
    import org.junit.runner.Description
    import org.junit.runners.model.Statement
    
    class MockWebServerRuleTest {
      @Test fun statementStartsAndStops() {
        val rule = MockWebServerRule()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (1)
  3. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

    import okio.Buffer
    import okio.ForwardingSource
    import okio.buffer
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    import org.junit.jupiter.api.fail
    
    class ExecuteAsyncTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private var client = clientTestRule.newClientBuilder().build()
    
      private lateinit var server: MockWebServer
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import assertk.fail
    import java.io.IOException
    import java.net.ServerSocket
    import java.net.Socket
    import java.net.SocketException
    import java.util.concurrent.TimeUnit
    import kotlin.test.assertFailsWith
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.startsWith
    import kotlin.test.assertFailsWith
    import kotlin.test.fail
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.internal.idn.Punycode
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    
    /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

              val description = StringDescription()
              versionMatcher.describeTo(description)
              description.appendText(" expected to fail with exception that ")
              failureMatcher.describeTo(description)
    
              fail<Any>(description.toString())
            }
          }
        }
    
        fun isConscrypt() = getPlatformSystemProperty() == CONSCRYPT_PROPERTY
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/BaseTestHandler.kt

        headerBlock: List<Header>,
      ) {
        fail("")
      }
    
      override fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        fail("")
      }
    
      override fun settings(
        clearPrevious: Boolean,
        settings: Settings,
      ) {
        fail("")
      }
    
      override fun ackSettings() {
        fail("")
      }
    
      override fun ping(
        ack: Boolean,
        payload1: Int,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

          } catch (e: Throwable) {
            failure = e
          }
    
          if (entry.input in knownFailures) {
            if (failure == null) failures += AssertionError("known failure didn't fail: $entry")
          } else {
            if (failure != null) failures += failure
          }
        }
    
        if (failures.isNotEmpty()) {
          for (failure in failures) {
            println(failure)
          }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

        fileSystem.createDirectories(workspaceDir)
      }
    
      /**
       * Resolve the OSGi metadata of the all okhttp3 modules. If required modules do not have OSGi
       * metadata this will fail with an exception.
       */
      @Test
      fun testMainModuleWithSiblings() {
        createWorkspace().use { workspace ->
          createBndRun(workspace).use { bndRun ->
            bndRun.resolve(
              false,
              false,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  10. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          |-----END PRIVATE KEY-----
          |
          """.trimMargin()
        try {
          decode(certificatePem)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo("string does not include a private key")
        }
        try {
          decode(pkcs8Pem)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
Back to top