Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for Scenarios (2.02 sec)

  1. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            SmbRenewableCredentials impl = supplier.get();
    
            // Act: call renew
            CredentialsInternal renewed = impl.renew();
    
            // Assert: verify behavior based on scenario
            if (expectSame) {
                assertSame(impl, renewed, "renew() should return the same instance");
            } else if (expectNew) {
                assertNotNull(renewed, "renew() should return a new non-null instance");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/AccessResultImplTest.java

            assertTrue(resultString.contains("session456"));
            assertTrue(resultString.contains("https://example.com/test"));
        }
    
        public void test_complexScenario() {
            // Test complex scenario with full initialization
            AccessResultImpl<Long> result = new AccessResultImpl<>();
    
            // Create ResponseData with comprehensive data
            ResponseData responseData = new ResponseData();
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

                    log.warn("Error creating SmbFile from cache for {}: {}", fileInfo.getName(), e.getMessage());
                    // For testing purposes, continue processing other files
                    // In a real scenario, you might want to handle this differently
                }
            }
    
            return files;
        }
    
        /**
         * Update directory cache with new listing
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            // When
            request.setFileId(testFileId);
    
            // Then - verify through internal state (would need getter or reflection in real scenario)
            // Since we can't directly verify the internal state, we create a new request to test
            Smb2CloseRequest newRequest = new Smb2CloseRequest(mockConfig, testFileId);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            ruleManager.addRule(rule4);
            matched = ruleManager.getRule(responseData);
            assertEquals("rule4", matched.getRuleId());
        }
    
        /**
         * Test rule replacement scenario
         */
        public void test_ruleReplacement() {
            TestRule oldRule = new TestRule("rule1", false);
            TestRule newRule = new TestRule("rule1", true); // Same ID, different behavior
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            int responseCode = ntlmConnection.getResponseCode();
    
            // Assert - Verify we got the 401 response (simplified test)
            assertEquals(HTTP_UNAUTHORIZED, responseCode);
    
            // In a real scenario, the connection would reconnect and send Type1/Type3 messages
            // This simplified test just verifies the initial handshake detection
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RequestDataTest.java

            assertEquals(Method.POST, Method.valueOf("POST"));
            assertEquals(Method.HEAD, Method.valueOf("HEAD"));
        }
    
        public void test_complexScenario() {
            // Test a complex scenario with multiple operations
            RequestData data = new RequestData();
    
            // Set values
            data.setMethod("POST");
            data.setUrl("https://api.example.com/endpoint");
            data.setWeight(0.8f);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

                    protected SmbResource adapt(FileEntry e) {
                        return resource;
                    }
                };
            });
        }
    
        @Test
        @DisplayName("Complex scenario with multiple filter conditions")
        void complexFilterScenario() throws Exception {
            // Setup: three entries with different filter results
            FileEntry entry1 = mock(FileEntry.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            verify(request).size();
            verify(request).getOverrideTimeout();
            verify(request).allowChain(nextRequest);
        }
    
        @Test
        @DisplayName("Test chaining scenario with multiple requests")
        void testChainingScenario() {
            // Given
            CommonServerMessageBlockRequest thirdRequest = mock(CommonServerMessageBlockRequest.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. 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)
Back to top