Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for assertInvalid (0.27 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http/StatusLineTest.kt

      @Test
      fun missingProtocol() {
        assertInvalid("")
        assertInvalid(" ")
        assertInvalid("200 OK")
        assertInvalid(" 200 OK")
      }
    
      @Test
      fun protocolVersions() {
        assertInvalid("HTTP/2.0 200 OK")
        assertInvalid("HTTP/2.1 200 OK")
        assertInvalid("HTTP/-.1 200 OK")
        assertInvalid("HTTP/1.- 200 OK")
        assertInvalid("HTTP/0.1 200 OK")
        assertInvalid("HTTP/101 200 OK")
    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)
  3. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun unparseableTopPrivateDomain() {
        assertInvalid("http://a../", "Invalid URL host: \"a..\"")
        assertInvalid("http://..a/", "Invalid URL host: \"..a\"")
        assertInvalid("http://a..b/", "Invalid URL host: \"a..b\"")
        assertInvalid("http://.a/", "Invalid URL host: \".a\"")
        assertInvalid("http://../", "Invalid URL host: \"..\"")
      }
    
      @Test
      fun hostnameTelephone() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/MediaTypeGetTest.kt

    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 =
          assertFailsWith<IllegalArgumentException> {
            parse(string)
          }
        assertEquals(exceptionMessage, e.message)
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. maven-core/src/test/resources/apiv4-repo/junit/junit/4.13.1/junit-4.13.1.jar

    MethodValidator { private final java.util.List errors; private TestClass testClass; public void MethodValidator(TestClass); public void validateInstanceMeth(); public void validateStaticMethod(); public java.util.List validateMethodsForDe(); public void assertValid() throws InitializationError; public void validateNoArgConstru(); private void validateTestMethods(Class, boolean); } org/junit/internal/runners/MethodRoadie$2.class package org.junit.internal.runners; synchronized class MethodRoadie$2 implements...
    Archive
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 373.7K bytes
    - Viewed (0)
Back to top