Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for Scenarios (0.96 sec)

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

     * Due to the iterator's constructor calling advance() immediately, which requires
     * the adapt() method to be functional, we test the behavior using simple mock
     * scenarios that don't require complex filter setups.
     */
    @ExtendWith(MockitoExtension.class)
    class DirFileEntryAdapterIteratorTest {
    
        @Mock
        private SmbResource mockParent;
    
        @Mock
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            doNothing().when(response).reset();
            response.reset();
            verify(response).reset();
        }
    
        @Test
        @DisplayName("Test concrete implementation with multiple scenarios")
        void testConcreteImplementation() throws SMBProtocolDecodingException {
            // Create a concrete implementation for comprehensive testing
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java

         * Disabled by default - enable with -Dwitness.integration.test=true
         */
        @Test
        void testWitnessEnvironmentConfiguration() throws Exception {
            // Test simulating real witness environment scenarios
            // This test validates integration patterns without requiring real cluster
    
            // Simulate witness service discovery
            InetAddress mockWitnessAddress = InetAddress.getByName("127.0.0.1");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            assertEquals((byte) 0xFF, dst[1]);
            assertEquals((byte) 0xFF, dst[2]);
            assertEquals((byte) 0xFF, dst[3]);
        }
    
        @Test
        @DisplayName("Test writeUTime with DST scenarios")
        void testWriteUTimeWithDST() {
            when(mockConfig.getLocalTimezone()).thenReturn(mockTimeZone);
    
            byte[] dst = new byte[4];
            long testTime = System.currentTimeMillis();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                    long minTime = timings.stream().mapToLong(Long::longValue).min().orElse(0L);
    
                    double variance = (maxTime - minTime) / avgTime;
                    // JVM timing in concurrent scenarios is inherently variable
                    // We verify implementation correctness rather than precise timing
                    assertTrue(variance < 50.0,
                            String.format(
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Security-focused test cases for Smb2NegotiateResponse input validation.
     * Tests various malformed input scenarios to ensure proper validation and
     * protection against buffer overflow, integer overflow, and other attacks.
     */
    public class Smb2NegotiateResponseInputValidationTest {
    
        private Configuration mockConfig;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            assertEquals(TEST_CAPABILITIES, SMBUtil.readInt4(buffer, offset + 4)); // Capabilities
        }
    
        @Test
        @DisplayName("Should handle session binding scenarios")
        void testSessionBindingScenarios() throws Exception {
            // Test both true and false session binding
            boolean[] bindingValues = { true, false };
    
            for (boolean binding : bindingValues) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/audit/SecurityAuditLogger.java

         *
         * In high performance mode, expensive regex operations are avoided by doing
         * fast string contains checks first. This significantly improves performance
         * for high-frequency logging scenarios.
         *
         * @param enable true to enable high performance mode
         */
        public void setHighPerformanceModeEnabled(boolean enable) {
            this.enableHighPerformanceMode = enable;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  9. docs/smb3-features/02-persistent-handles-design.md

    ## 1. Overview
    
    Persistent handles (also known as durable handles) allow SMB3 connections to survive network disconnections, server reboots, and client reconnections. This feature is critical for enterprise reliability and seamless failover scenarios.
    
    ## 2. Protocol Specification Reference
    
    - **MS-SMB2 Section 2.2.13.2.3**: SMB2_CREATE_DURABLE_HANDLE_REQUEST
    - **MS-SMB2 Section 2.2.13.2.4**: SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbSessionTest.java

                verify(mockSession, times(1)).unwrap(SmbSession.class);
                verify(mockSession, times(1)).close();
            }
    
            @Test
            @DisplayName("Should support partial mocking scenarios")
            void shouldSupportPartialMockingScenarios() {
                SmbSession mockSession = mock(SmbSession.class);
                Configuration mockConfig = mock(Configuration.class);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top