Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 111 for Scenario (0.04 sec)

  1. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                assertEquals(1000L * sectorSize, fileFsSizeInfo.getCapacity());
                assertEquals(500L * sectorSize, fileFsSizeInfo.getFree());
            }
    
            @Test
            @DisplayName("Should handle full disk scenario")
            void shouldHandleFullDiskScenario() throws SMBProtocolDecodingException {
                // Given - disk with no free space
                ByteBuffer buffer = ByteBuffer.allocate(24);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

            // Act
            SmbSession result = handle.getSession();
    
            // Assert
            assertNull(result);
            verify(handle).getSession();
        }
    
        @Test
        @DisplayName("Scenario: verify interaction order across multiple calls")
        void verifyInteractionOrder() throws Exception {
            // Arrange: stub simple returns
            when(handle.hasCapability(anyInt())).thenReturn(true);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. 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)
  4. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

                                } catch (SmbException e) {
                                    // Account locked out - this is expected behavior in concurrent scenario
                                    blockedAttempts.incrementAndGet();
                                    break; // Stop trying if account is locked
                                }
    
                                if (!allowed) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  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. 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)
Back to top