Search Options

Results per page
Sort
Preferred Languages
Advance

Results 831 - 840 of 2,907 for 2test (0.02 sec)

  1. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt

    import okio.ByteString.Companion.EMPTY
    import okio.ByteString.Companion.encodeUtf8
    import okio.Sink
    import okio.buffer
    import okio.gzip
    import org.junit.jupiter.api.Test
    
    class ZstdInterceptorTest {
      val zstdInterceptor = CompressionInterceptor(Zstd, Gzip)
    
      @Test
      fun testDecompressZstd() {
        val s = "hello zstd world".encodeUtf8().zstdCompress()
    
        val response =
          response("https://example.com/", s) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        }
    
        @Test
        @DisplayName("Should handle different cipher IDs")
        void testDifferentCipherIds() {
            // Test cipher ID 1 (AES-CCM)
            Smb2EncryptionContext context1 = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey);
            assertEquals(1, context1.getCipherId(), "Should handle cipher ID 1");
    
            // Test cipher ID 2 (AES-GCM)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

    import mockwebserver3.junit5.StartStop
    import okhttp3.Cookie.Companion.parse
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    import org.junit.jupiter.api.extension.RegisterExtension
    
    /** Derived from Android's CookiesTest.  */
    @Timeout(30)
    class CookiesTest {
      @RegisterExtension
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt

    import okhttp3.internal.http2.MockHttp2Peer
    import okhttp3.internal.http2.Settings
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Disabled
    import org.junit.jupiter.api.Test
    
    class ConnectionPoolTest {
      private val routePlanner = FakeRoutePlanner()
      private val factory = routePlanner.factory
      private val taskFaker = routePlanner.taskFaker
      private val peer = MockHttp2Peer()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

        executorService.shutdown()
      }
    
      @Test
      @Throws(IOException::class)
      fun http1DoesntSupportDuplex() {
        val call =
          client.newCall(
            Request
              .Builder()
              .url(server.url("/"))
              .post(AsyncRequestBody())
              .build(),
          )
        assertFailsWith<ProtocolException> {
          call.execute()
        }
      }
    
      @Test
      fun trueDuplexClientWritesFirst() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/LmhostsTest.java

        }
    
        @Test
        void testGetByNameWithNullLmHostsFile() {
            // Test when lmhosts file is not configured
            when(mockConfig.getLmHostsFileName()).thenReturn(null);
    
            NbtAddress result = lmhosts.getByName("TEST_HOST", mockContext);
    
            assertNull(result);
        }
    
        @Test
        void testGetByNameWithNonExistentFile() {
            // Test with non-existent file
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/query/FuzzyQueryCommandTest.java

            assertEquals(searchText, fqb.value());
        }
    
        // Test with special characters in term text
        public void test_convertFuzzyQuery_withSpecialCharacters() {
            QueryContext context = new QueryContext("test", false);
            String[] specialTexts = { "test@email.com", "test-hyphen", "test_underscore", "test.period", "test+plus" };
    
            for (String text : specialTexts) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SIDTest.java

        }
    
        /**
         * Test constructor with an invalid SID string.
         */
        @Test
        void testStringConstructorInvalidFormat() {
            assertThrows(SmbException.class, () -> new SID("invalid-sid"));
            assertThrows(SmbException.class, () -> new SID("S-1"));
        }
    
        /**
         * Test constructor with a byte array.
         */
        @Test
        void testByteArrayConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

            assertEquals(value, msg.getFlags(), "getFlags should return the value set");
        }
    
        @Test
        @DisplayName("setFlag true sets the bit")
        void testSetFlagTrue() {
            msg.setFlag(0x4, true);
            assertTrue(msg.getFlag(0x4), "Bit should be set after setFlag(true)");
        }
    
        @Test
        @DisplayName("setFlag false clears the bit")
        void testSetFlagFalse() {
            msg.setFlag(0x4, true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  10. cmd/admin-handlers_test.go

    			err:            errDiskNotFound,
    			expectedAPIErr: toAPIErrorCode(GlobalContext, errDiskNotFound),
    		},
    	}
    
    	for i, test := range testCases {
    		actualErr := toAdminAPIErrCode(GlobalContext, test.err)
    		if actualErr != test.expectedAPIErr {
    			t.Errorf("Test %d: Expected %v but received %v",
    				i+1, test.expectedAPIErr, actualErr)
    		}
    	}
    }
    
    func TestExtractHealInitParams(t *testing.T) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (1)
Back to top