Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for isSubtype (0.22 sec)

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

      }
    
      @Test fun testInvalidParse() {
        assertInvalid("", "No subtype found for: \"\"")
        assertInvalid("/", "No subtype found for: \"/\"")
        assertInvalid("text", "No subtype found for: \"text\"")
        assertInvalid("text/", "No subtype found for: \"text/\"")
        assertInvalid("te<t/plain", "No subtype found for: \"te<t/plain\"")
        assertInvalid(" text/plain", "No subtype found for: \" text/plain\"")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/MediaType.kt

        level = DeprecationLevel.ERROR,
      )
      fun type(): String = type
    
      @JvmName("-deprecated_subtype")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "subtype"),
        level = DeprecationLevel.ERROR,
      )
      fun subtype(): String = subtype
    
      /**
       * Returns the encoded media type, like "text/plain; charset=utf-8", appropriate for use in a
       * Content-Type header.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        }
        ParameterizedType subtype =
            (ParameterizedType)
                new TypeToken<BaseWithTypeVar<List<?>>>() {}.getSubtype(Outer.Sub.class).getType();
        assertEquals(Outer.Sub.class, subtype.getRawType());
        assertThat(subtype.getActualTypeArguments()[0]).isInstanceOf(WildcardType.class);
        ParameterizedType owner = (ParameterizedType) subtype.getOwnerType();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

    private const val QUOTED = "\"([^\"]*)\""
    private val TYPE_SUBTYPE = Regex("$TOKEN/$TOKEN")
    private val PARAMETER = Regex(";\\s*(?:$TOKEN=(?:$TOKEN|$QUOTED))?")
    
    /**
     * Returns a media type for this string.
     *
     * @throws IllegalArgumentException if this is not a well-formed media type.
     */
    internal fun String.commonToMediaType(): MediaType {
      val typeSubtype: MatchResult =
        TYPE_SUBTYPE.matchAtPolyfill(this, 0)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        }
        ParameterizedType subtype =
            (ParameterizedType)
                new TypeToken<BaseWithTypeVar<List<?>>>() {}.getSubtype(Outer.Sub.class).getType();
        assertEquals(Outer.Sub.class, subtype.getRawType());
        assertThat(subtype.getActualTypeArguments()[0]).isInstanceOf(WildcardType.class);
        ParameterizedType owner = (ParameterizedType) subtype.getOwnerType();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertEquals("application", newType.type());
        assertEquals("yams", newType.subtype());
      }
    
      public void testCreateAudioType() {
        MediaType newType = MediaType.createAudioType("yams");
        assertEquals("audio", newType.type());
        assertEquals("yams", newType.subtype());
      }
    
      public void testCreateFontType() {
        MediaType newType = MediaType.createFontType("yams");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertEquals("application", newType.type());
        assertEquals("yams", newType.subtype());
      }
    
      public void testCreateAudioType() {
        MediaType newType = MediaType.createAudioType("yams");
        assertEquals("audio", newType.type());
        assertEquals("yams", newType.subtype());
      }
    
      public void testCreateFontType() {
        MediaType newType = MediaType.createFontType("yams");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/MediaTypeJvmTest.kt

          assertEquals("image", mediaType.type)
          assertEquals("jpeg", mediaType.subtype)
        }
      }
    
      @Test fun testTurkishDotlessIWithTrTr() {
        withLocale(Locale("tr", "TR")) {
          val mediaType = parse("IMAGE/JPEG")
          assertEquals("image", mediaType.type)
          assertEquals("jpeg", mediaType.subtype)
        }
      }
    
      private fun <T> withLocale(
        locale: Locale,
        block: () -> T,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val keyPair: KeyPair = heldCertificate.keyPair()
      }
    
      @Test @Disabled
      fun mediaType() {
        val mediaType: MediaType = MediaType.get("")
        val type: String = mediaType.type()
        val subtype: String = mediaType.subtype()
        val parse: MediaType? = MediaType.parse("")
      }
    
      @Test @Disabled
      fun mockResponse() {
        val mockResponse = MockResponse()
        var status: String = mockResponse.getStatus()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *   <li>Nulls test is not performed on method return values unless the method is a non-private
       *       static factory method whose return type is {@code cls} or {@code cls}'s subtype.
       * </ul>
       */
      public void testNulls(Class<?> cls) {
        try {
          doTestNulls(cls, Visibility.PACKAGE);
        } catch (Exception e) {
          throwIfUnchecked(e);
          throw new RuntimeException(e);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top