Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 117 for Boundary (0.07 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/EXTRACTOR_TESTS_README.md

    1. **Isolation**: Each test is independent and doesn't affect others
    2. **Clarity**: Test names clearly describe what is being tested
    3. **Coverage**: Both success and failure paths are tested
    4. **Edge Cases**: Null, empty, and boundary conditions are covered
    5. **Resources**: Test resources are properly managed and cleaned up
    
    ## Contributing
    
    When adding new tests:
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Nov 19 08:55:01 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java

            int result2 = transWaitNamedPipe.writeSetupWireFormat(dst2, 0);
    
            // Assert
            assertEquals(result1, result2);
            assertArrayEquals(dst1, dst2);
        }
    
        @Test
        @DisplayName("Boundary test for writeSetupWireFormat with minimum buffer")
        void testWriteSetupWireFormatMinimumBuffer() {
            // Arrange
            transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            // Then
            // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 32
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 32;
            // The size8 method aligns to 8-byte boundary
            int alignedSize = (expectedSize + 7) & ~7;
            assertEquals(alignedSize, size);
        }
    
        @Test
        @DisplayName("Should write correct bytes to wire format")
        void testWriteBytesWireFormat() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/ppc64_p10.s

    	PDEPD R1, R2, R3                        // 7c231138
    	PEXTD R1, R2, R3                        // 7c231178
    	PLBZ 1234(R1), $0, R3                   // 06000000886104d260000000
    	// Note, PLD crosses a 64B boundary, and a nop is inserted between PLBZ and PLD
    	PLD 1234(R1), $0, R3                    // 04000000e46104d2
    	PLFD 1234(R1), $0, F3                   // 06000000c86104d2
    	PLFS 1234567890(R4), $0, F3             // 06004996c06402d2
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Mar 23 20:52:57 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java

            thread2.start();
    
            thread1.join();
            thread2.join();
    
            // Should complete without errors
            assertNotNull(urlFilter);
        }
    
        /**
         * Test boundary conditions
         */
        public void test_boundaryConditions() {
            String sessionId = "test-session-024";
            urlFilter.init(sessionId);
    
            // Test empty pattern
            urlFilter.addInclude("");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

        }
    
        @Test
        @DisplayName("size should return correct message size")
        void testSize() {
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24;
            // size8 method rounds up to 8-byte boundary
            int expectedAlignedSize = (expectedSize + 7) & ~7;
    
            assertEquals(expectedAlignedSize, request.size());
        }
    
        @Test
        @DisplayName("writeBytesWireFormat should write correct structure")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

                // String data in UTF-16LE
                buf.writeOctetArray(wideBytes, 0, wideBytes.length);
                buf.enc_ndr_short(0); // Wide null terminator
    
                // Pad to 4-byte boundary
                int padding = (4 - ((wideBytes.length + 2) % 4)) % 4;
                for (int i = 0; i < padding; i++) {
                    buf.enc_ndr_small(0);
                }
            }
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java

            // Then
            assertEquals(TEST_DATA.length, bytesWritten);
            assertArrayEquals(TEST_DATA, dst);
        }
    
        @Test
        @DisplayName("Test writeDataWireFormat boundary check with offset")
        void testWriteDataWireFormatBoundaryWithOffset() {
            // Given
            transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, 0, TEST_DATA.length);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            assertEquals(0, result);
    
            result = response.readDataWireFormat(null, 0, 0);
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test boundary conditions for buffer offsets")
        void testBoundaryConditions() {
            byte[] smallBuffer = new byte[10];
    
            // Test with maximum offset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 8, Smb2QueryDirectoryResponse.OVERHEAD);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with buffer boundary conditions")
        void testReadBytesWireFormatBufferBoundary() throws Exception {
            response = new Smb2QueryDirectoryResponse(mockConfig, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
Back to top