Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 106 for BOUNDARY (0.04 sec)

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

            assertEquals(8, bytesEncoded);
            assertEquals(0L, SMBUtil.readInt8(destinationBuffer, 0));
        }
    
        @Test
        @DisplayName("Test boundary values for index number")
        void testBoundaryValuesForIndexNumber() throws SMBProtocolDecodingException {
            // Test various boundary values
            long[] testValues = { 0L, // Zero
                    1L, // One
                    -1L, // Negative one
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

            @Test
            @DisplayName("getResultMessage should handle boundary conditions")
            void testGetResultMessageBoundaryConditions() throws Exception {
                // When/Then
                Method getResultMessageMethod = DcerpcBind.class.getDeclaredMethod("getResultMessage", int.class);
                getResultMessageMethod.setAccessible(true);
    
                // Test boundary at 4 (first unknown code)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/WinErrorTest.java

                    assertNotNull(message, String.format("Message for code %d should not be null", code));
                }
            }
        }
    
        @Nested
        @DisplayName("Boundary conditions")
        class Boundary {
            @Test
            void accessingInvalidIndexThrows() {
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            // Then
            // SMB2_HEADER_LENGTH + 4 bytes for tree disconnect structure
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 4;
            // 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                assertEquals(expectedSize, request.size());
            }
    
            @Test
            @DisplayName("Should align size to 8-byte boundary")
            void testSizeAlignment() {
                int size = request.size();
                assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary");
            }
    
            @Test
            @DisplayName("Should have consistent size regardless of parameters")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            }
    
            @Test
            @DisplayName("Should handle boundary conditions in decode")
            void testBoundaryConditions() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[100];
                TestCreateContextResponse response = new TestCreateContextResponse("BOUNDARY".getBytes(StandardCharsets.UTF_8));
    
                // Test at buffer start
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

        }
    
        @Test
        void testGetBuffer() {
            assertSame(buffer, ndrBuffer.getBuffer());
        }
    
        @Test
        void testAlignWithValue() {
            // Align to 4-byte boundary with a fill value
            ndrBuffer.setIndex(1);
            int alignedBytes = ndrBuffer.align(4, (byte) 0xFF);
            assertEquals(3, alignedBytes); // Should advance by 3 bytes (1 -> 4)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            } catch (Exception e) {
                // Expected for negative values
            }
    
            // Test boundary values
            assertEquals("1bytes", MemoryUtil.byteCountToDisplaySize(1L));
            assertEquals("999bytes", MemoryUtil.byteCountToDisplaySize(999L));
    
            // Test very large values close to EB boundary
            assertEquals("1.024EB", MemoryUtil.byteCountToDisplaySize(FileUtils.ONE_EB));
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/RangeMap.java

       *
       * <p>Any parts of the range not already present in this map are mapped to the specified value,
       * unless the value is {@code null}.
       *
       * <p>Any existing entry spanning either range boundary may be split at the boundary, even if the
       * merge does not affect its value. For example, if {@code rangeMap} had one entry {@code [1, 5]
       * => 3} then {@code rangeMap.merge(Range.closed(0,2), 3, Math::max)} could yield a map with the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

                assertEquals(0, smbComTreeDisconnect.readBytesWireFormat(buffer, i));
            }
        }
    
        /**
         * Test boundary conditions for buffer indices
         */
        @Test
        @DisplayName("Test boundary conditions for buffer indices")
        public void testBoundaryConditions() {
            // Given
            smbComTreeDisconnect = new SmbComTreeDisconnect(config);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
Back to top