Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MediaTypeGetTest (0.12 sec)

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

     * limitations under the License.
     */
    package okhttp3
    
    import kotlin.test.assertEquals
    import kotlin.test.assertFailsWith
    import okhttp3.MediaType.Companion.toMediaType
    
    open class MediaTypeGetTest : MediaTypeTest() {
      override fun parse(string: String): MediaType = string.toMediaType()
    
      override fun assertInvalid(
        string: String,
        exceptionMessage: String?,
      ) {
        val e =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. native-image-tests/src/main/resources/testlist.txt

    okhttp3.HandshakeTest
    okhttp3.HeadersKotlinTest
    okhttp3.HeadersTest
    okhttp3.HttpUrlTest
    okhttp3.InsecureForHostTest
    okhttp3.InterceptorTest
    okhttp3.KotlinDeprecationErrorTest
    okhttp3.KotlinSourceModernTest
    okhttp3.MediaTypeGetTest
    okhttp3.MediaTypeTest
    okhttp3.MultipartBodyTest
    okhttp3.MultipartReaderTest
    okhttp3.OkHttpClientTest
    okhttp3.OkHttpTest
    okhttp3.ProtocolTest
    okhttp3.PublicSuffixDatabaseTest
    okhttp3.PublicInternalApiTest
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu May 11 14:48:57 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/MediaTypeJvmTest.kt

    import kotlin.test.assertNull
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.internal.platform.Platform.Companion.isAndroid
    import org.junit.jupiter.api.Test
    
    class MediaTypeJvmTest : MediaTypeGetTest() {
      override fun MediaType.charsetName(): String? = this.charset()?.name()
    
      @Test fun testCharsetNameIsDoubleQuotedAndSingleQuotedAndroid() {
        val mediaType = "text/plain;charset=\"'utf-8'\"".toMediaType()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top