- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for testReadBytesWireFormat (0.1 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
verify(mockOutputData).encode(any(byte[].class), anyInt()); } @Test @DisplayName("Test readBytesWireFormat returns 0") void testReadBytesWireFormat() { setupMockConfig(); Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE); byte[] buffer = new byte[1024];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
// Verify reserved field is zero assertEquals(0, SMBUtil.readInt4(buffer, offset + 28)); } @Test @DisplayName("Should read empty bytes from wire format") void testReadBytesWireFormat() { // Given byte[] buffer = new byte[256]; int offset = 10; // When int bytesRead = request.readBytesWireFormat(buffer, offset); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
assertEquals(0, buffer[offset + 3], "Reserved bytes should be 0"); } @Test @DisplayName("Test readBytesWireFormat returns 0") void testReadBytesWireFormat() { // Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); byte[] buffer = new byte[100]; int offset = 10; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
byte[] expected = new byte[] { 0x04, 0x00, 0x00, 0x00 }; assertArrayEquals(expected, buffer); } @Test @DisplayName("Should always return 0 for readBytesWireFormat") void testReadBytesWireFormat() { // Given Configuration mockConfig = mock(Configuration.class); Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig); byte[] buffer = createTestData(256);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
assertEquals(0x001F01FF, access, "Should return maximal access value"); } @Test @DisplayName("Should decode response from bytes correctly") void testReadBytesWireFormat() throws Exception { // Given - Prepare a valid SMB2 Tree Connect Response buffer byte[] buffer = new byte[16]; // Structure size (16) buffer[0] = 0x10;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// Verify negotiate context offset/count area is zeroed assertEquals(0, SMBUtil.readInt8(buffer, 28)); } @Test @DisplayName("Should read empty bytes from wire format") void testReadBytesWireFormat() { // Given request = new Smb2NegotiateRequest(mockConfig, 0); byte[] buffer = new byte[256]; // When int bytesRead = request.readBytesWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
} } /** * Test readBytesWireFormat returns 0 */ @Test @DisplayName("Test readBytesWireFormat always returns 0") public void testReadBytesWireFormat() { // Given smbComTreeDisconnect = new SmbComTreeDisconnect(config); byte[] buffer = new byte[100]; int bufferIndex = 0; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
requestWithNull.writeBytesWireFormat(buffer, 0); }); } @Test @DisplayName("readBytesWireFormat should return 0") void testReadBytesWireFormat() { byte[] buffer = new byte[256]; int result = request.readBytesWireFormat(buffer, 0); assertEquals(0, result); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
// Verify total bytes written assertEquals(32 + infoSize, bytesWritten); } @Test @DisplayName("Test readBytesWireFormat returns 0") void testReadBytesWireFormat() { request = new Smb2SetInfoRequest(mockConfig); byte[] buffer = new byte[256]; int bytesRead = request.readBytesWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
} } @Nested @DisplayName("ReadBytesWireFormat Tests") class ReadBytesWireFormatTests { @Test @DisplayName("Should always return 0") void testReadBytesWireFormat() { byte[] buffer = new byte[100]; int bytesRead = echoRequest.readBytesWireFormat(buffer, 0); assertEquals(0, bytesRead); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0)