Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 111 for Scenario (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

                echoResponse.received();
                assertTrue(echoResponse.isReceived());
                assertFalse(echoResponse.isError());
            }
    
            @Test
            @DisplayName("Should handle error scenario")
            void testErrorScenario() {
                byte[] buffer = new byte[1024];
                int bufferIndex = 64;
    
                // Write invalid structure size
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java

            Handler handler = new Handler();
            Handler.StorageURLConnection conn = (Handler.StorageURLConnection) handler.openConnection(url);
    
            // Ensure environment variables are not set (in real scenario)
            // In this test, we expect IOException when endpoint is blank
            try {
                conn.connect();
                fail("Should throw IOException when endpoint is not set");
            } catch (IOException e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            executor.shutdown();
    
            assertTrue(exceptions.isEmpty());
            assertEquals(threadCount * operationsPerThread, crawlerContext.getAccessCount());
        }
    
        /**
         * Test complete workflow scenario
         */
        public void test_completeWorkflow() {
            // Initialize context
            crawlerContext.setSessionId("workflow-session");
            crawlerContext.setStatus(CrawlerStatus.INITIALIZING);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle mixed lock operations")
            void testMixedLockOperations() {
                // Simulate a complex scenario with mixed lock operations
                Smb2Lock[] locks = new Smb2Lock[] { new Smb2Lock(0L, 512L, Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                assertEquals(second, third.next());
                assertEquals(first, second.next());
            }
    
            @Test
            @DisplayName("Should handle cache replacement in complex scenario")
            void testComplexCacheReplacement() {
                Map<String, DfsReferralDataInternal> cache = new HashMap<>();
    
                // Create multiple entries
                for (int i = 0; i < 10; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            testBlock = new TestAndXServerMessageBlock(mockConfig, (byte) 0x25);
            byte[] buffer = new byte[1024];
    
            // Setup readAndXWireFormat scenario
            testBlock.headerStart = 0;
            buffer[0] = 4; // wordCount at position 0
            buffer[1] = (byte) 0x42; // andxCommand
            SMBUtil.writeInt2(0, buffer, 3); // andxOffset = 0 (triggers Snap workaround)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/Configuration.java

         * This means that trees/sessions/connections won't be idle-disconnected even if there are no other active
         * references (currently executing code, file descriptors).
         *
         * Depending on the usage scenario, this may have some benefit as there won't be any delays for restablishing these
         * resources, however comes at the cost of having to properly release all SmbFile instances you no longer need.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // causing the thread to be suspended for 3.5 seconds, and then park itself for 2 seconds after
        // being resumed. To avoid a flake in this scenario, calculate how long that thread actually
        // waited and assert based on that time. Empirically, the race where the thread ends up waiting
        // for 5.5 seconds happens about 2% of the time.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        server.enqueue(builder.build())
        if (responseCode == HttpURLConnection.HTTP_CLIENT_TIMEOUT) {
          // 408's are a bit of an outlier because we may repeat the request if we encounter this
          // response code. In this scenario, there are 2 responses: the initial 408 and then the 200
          // because of the retry. We just want to ensure the initial 408 isn't cached.
          expectedResponseCode = 200
          server.enqueue(
            MockResponse
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        }
    
        @Test
        @DisplayName("Should handle concurrent encryption operations safely")
        void testConcurrentEncryption() throws Exception {
            // Given - Test a simpler concurrent scenario first
            Smb2EncryptionContext context = new Smb2EncryptionContext(EncryptionNegotiateContext.CIPHER_AES128_GCM, DialectVersion.SMB311,
                    testEncryptionKey, testEncryptionKey);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
Back to top