- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 101 for PLAIN (0.09 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeTest.kt
assertInvalid("te<t/plain", "No subtype found for: \"te<t/plain\"") assertInvalid(" text/plain", "No subtype found for: \" text/plain\"") assertInvalid("te xt/plain", "No subtype found for: \"te xt/plain\"") assertInvalid("text /plain", "No subtype found for: \"text /plain\"") assertInvalid("text/ plain", "No subtype found for: \"text/ plain\"") assertInvalid( "text/pl@in",
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 7.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeJvmTest.kt
val mediaType = parse("text/plain; charset=\"!@#$%^&*()\"") assertNull(mediaType.charsetName()) } @Test fun testUnsupportedCharset() { val mediaType = parse("text/plain; charset=utf-wtf") assertNull(mediaType.charsetName()) } @Test fun testCharsetNameIsDoubleQuotedAndSingleQuoted() { val mediaType = parse("text/plain;charset=\"'utf-8'\"") assertNull(mediaType.charsetName())
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java
assertEquals("<pre class=\"prettyprint\"></pre>", value); code = "aaa"; value = FessFunctions.formatCode("L", "prettyprint", "text/plain", code); assertEquals("<pre class=\"prettyprint\">aaa</pre>", value); code = "aaa\nbbb"; value = FessFunctions.formatCode("L", "prettyprint", "text/plain", code);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 5.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
MediaType.create("TEXT", "PLAIN"), MediaType.parse("text/plain"), MediaType.parse("TEXT/PLAIN"), MediaType.parse("text /plain"), MediaType.parse("TEXT/ plain"), MediaType.parse("text / plain"), MediaType.create("text", "plain").withParameter("a", "1").withoutParameters()) .addEqualityGroup(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java
fileTypeHelper.add("text/plain", "text"); assertEquals("text", fileTypeHelper.get("text/plain")); fileTypeHelper.add("image/jpeg", "image"); assertEquals("image", fileTypeHelper.get("image/jpeg")); } public void test_get() { fileTypeHelper.add("application/pdf", "pdf"); fileTypeHelper.add("text/plain", "text");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 10 13:41:04 UTC 2025 - 5.3K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
.header("Content-Type", "text/plain-ish") .build(), ) } server.enqueue(MockResponse()) client .newCall( request() .post("Hi?".toRequestBody(PLAIN)) .build(), ).execute() applicationLogs .assertLogEqual("--> POST $url") .assertLogEqual("Content-Type: text/plain; charset=utf-8")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 37.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CommonRequestBodyTest.kt
class CommonRequestBodyTest { @Test fun correctContentType() { val body = "Body" val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf())) val contentType = requestBody.contentType()!! assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8") assertThat(contentType.parameter("charset")).isEqualTo("utf-8") }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt
val body = text.toResponseBody() assertThat(body.string()).isEqualTo(text) } @Test fun unicodeTextWithCharset() { val text = "eile oli oliiviõli" val body = text.toResponseBody("text/plain; charset=UTF-8".toMediaType()) assertThat(body.string()).isEqualTo(text) } @Test fun unicodeByteString() { val text = "eile oli oliiviõli" val body = text.toResponseBody()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
val contentType = "text/plain".toMediaType() val body = "\u0800".toRequestBody(contentType) assertThat(body.contentType()).isEqualTo("text/plain; charset=utf-8".toMediaType()) assertThat(body.contentLength()).isEqualTo(3) assertThat(bodyToHex(body)).isEqualTo("e0a080") } @Test fun stringWithNonDefaultCharsetSpecified() { val contentType = "text/plain; charset=utf-16be".toMediaType()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 19K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertNoMoreLogs() } private fun request(): Request.Builder = Request.Builder().url(url) companion object { private val PLAIN = "text/plain".toMediaType() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.2K bytes - Viewed (0)