- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 104 for boundary$ (0.04 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.7K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
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 theRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
// Assert assertEquals(4, bytesWritten); int writtenFid = SMBUtil.readInt2(dst, 2); assertEquals(largeFid, writtenFid); } @Test @DisplayName("Test boundary condition with buffer size equal to data length minus one") void testBoundaryBufferSize() { // ArrangeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
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 startRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleRequest.java
dstIndex += 4; // Write context name System.arraycopy(CONTEXT_NAME_BYTES, 0, dst, dstIndex, 4); dstIndex += 4; // Padding to align data to 8-byte boundary dstIndex += 4; // Write durable handle request data (16 bytes of reserved) for (int i = 0; i < 16; i++) { dst[dstIndex + i] = 0; } dstIndex += 16;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
@DisplayName("Should align size to 8-byte boundary") void testSizeAlignment() { // Test various data lengths to ensure 8-byte alignment for (int i = 0; i < 16; i++) { request.setData(new byte[i], 0, i); int size = request.size(); assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary"); } } }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0)