Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testBufferBoundaryConditions (0.54 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\share\\file$name.txt"));
        }
    
        @Test
        @DisplayName("Test buffer boundary conditions")
        void testBufferBoundaryConditions() {
            // Given
            trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, "test");
    
            // Test with minimum size buffer
            byte[] smallBuffer = new byte[2];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

            }
        }
    
        @Nested
        @DisplayName("Edge Cases")
        class EdgeCases {
    
            @Test
            @DisplayName("Should handle buffer boundary conditions")
            void testBufferBoundaryConditions() {
                // Minimum size buffer
                byte[] minBuffer = new byte[4];
                int written = echoRequest.writeBytesWireFormat(minBuffer, 0);
                assertEquals(4, written);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

            }, "Should throw IllegalArgumentException for invalid information level: " + invalidLevel);
        }
    
        @Test
        @DisplayName("Test buffer boundary conditions")
        void testBufferBoundaryConditions() {
            trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            // Test with minimal buffer size
            byte[] minBuffer = new byte[2];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            assertEquals("test", notifications.get(1).getFileName());
        }
    
        @Test
        @DisplayName("Should handle buffer boundary conditions")
        void testBufferBoundaryConditions() throws Exception {
            // Given - notification exactly at buffer end
            byte[] buffer = new byte[104]; // Exact size needed
            int offset = 0;
    
            setHeaderStart(response, 64);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top