- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 45 for testWriteBytesWireFormat (2.33 sec)
-
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
// Verify that data was written (should write 22 bytes based on implementation) assertEquals(22, result, "writeParameterWordsWireFormat should write 22 bytes"); } @Test void testWriteBytesWireFormat() { byte[] dst = new byte[1024]; int result = setupAndX.writeBytesWireFormat(dst, 0); // Verify that data was writtenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
} /** * Test the writeBytesWireFormat method. * It should write the dialect string to the destination array. */ @Test void testWriteBytesWireFormat() throws UnsupportedEncodingException { byte[] expectedBytes = DIALECTS.getBytes("ASCII"); byte[] dst = new byte[expectedBytes.length]; int dstIndex = 0;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
} @Nested @DisplayName("WriteBytesWireFormat Tests") class WriteBytesWireFormatTests { @Test @DisplayName("Should always return 0 for writeBytesWireFormat") void testWriteBytesWireFormat() { byte[] buffer = new byte[1024]; int result = response.writeBytesWireFormat(buffer, 0); assertEquals(0, result); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
int alignedSize = (expectedSize + 7) & ~7; assertEquals(alignedSize, size); } @Test @DisplayName("Should write correct bytes to wire format") void testWriteBytesWireFormat() { // Given byte[] buffer = new byte[512]; int offset = 100; request.setNotifyFlags(Smb2ChangeNotifyRequest.SMB2_WATCH_TREE);Registered: Sat Dec 20 13:44:44 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(expectedSize, size, "Size calculation should be correct and 8-byte aligned"); } @Test @DisplayName("Test writeBytesWireFormat writes correct bytes") void testWriteBytesWireFormat() { // Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); byte[] buffer = new byte[100]; int offset = 10; // When
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
// Command is not set in constructor, only after decoding assertEquals((short) 0, response.getCommand()); } @Test @DisplayName("Test writeBytesWireFormat returns 0") void testWriteBytesWireFormat() { byte[] dst = new byte[1024]; int dstIndex = 0; int result = response.writeBytesWireFormat(dst, dstIndex); assertEquals(0, result); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
} /** * Test of writeBytesWireFormat method, of class SmbComQueryInformationResponse. */ @Test public void testWriteBytesWireFormat() { byte[] dst = new byte[10]; int dstIndex = 0; // This method does nothing and should return 0. assertEquals(0, response.writeBytesWireFormat(dst, dstIndex)); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
assertEquals(0x80, Smb2TreeConnectResponse.SMB2_SHARE_CAP_ASYMMETRIC); } @Test @DisplayName("Should write empty bytes to wire format") void testWriteBytesWireFormat() { // Given byte[] buffer = new byte[256]; int offset = 10; // When int bytesWritten = response.writeBytesWireFormat(buffer, offset); // Then
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
assertEquals(0x78, dst[4] & 0xFF); assertEquals(0x56, dst[5] & 0xFF); } /** * Test writeBytesWireFormat writes data correctly */ @Test public void testWriteBytesWireFormat() { // Arrange byte[] data = { 1, 2, 3, 4, 5 }; SmbComWrite write = new SmbComWrite(); write.setParam(0, 0L, 0, data, 1, 3); // Write bytes 2,3,4
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
} /** * Test method for {@link jcifs.internal.smb1.com.SmbComClose#writeBytesWireFormat(byte[], int)}. */ @Test public void testWriteBytesWireFormat() { // Given SmbComClose smbComClose = new SmbComClose(config, 1, 1L); byte[] dst = new byte[0]; // When int bytesWritten = smbComClose.writeBytesWireFormat(dst, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0)