Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MediaTypeTest (0.15 sec)

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

    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    
    /**
     * Test MediaType API and parsing.
     *
     * This test includes tests from [Guava's](https://code.google.com/p/guava-libraries/)
     * MediaTypeTest.
     */
    open class MediaTypeTest {
      open fun MediaType.charsetName(): String? = parameter("charset")?.uppercase()
    
      protected open fun parse(string: String): MediaType = string.toMediaTypeOrNull()!!
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/MediaTypeTest.java

    import java.util.Arrays;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link MediaType}.
     *
     * @author Gregory Kick
     */
    @GwtCompatible(emulated = true)
    public class MediaTypeTest extends TestCase {
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testParse_useConstants() throws Exception {
        for (MediaType constant : getConstants()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. 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)
  4. native-image-tests/src/main/resources/testlist.txt

    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
    okhttp3.RequestTest
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu May 11 14:48:57 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top