- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 55 for testWriteBytesWireFormat (0.42 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java
} @Test public void testWriteParameterWordsWireFormat() { assertEquals(0, response.writeParameterWordsWireFormat(new byte[0], 0)); } @Test public void testWriteBytesWireFormat() { assertEquals(0, response.writeBytesWireFormat(new byte[0], 0)); } @Test public void testReadBytesWireFormat() { assertEquals(0, response.readBytesWireFormat(new byte[0], 0));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
} @Nested @DisplayName("writeBytesWireFormat tests") class WriteBytesWireFormatTests { @Test @DisplayName("Should always return 0 for write bytes") void testWriteBytesWireFormat() { // Given byte[] dst = new byte[100]; int dstIndex = 0; // When int result = response.writeBytesWireFormat(dst, dstIndex);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
assertEquals(0, size % 8); // Should be 8-byte aligned } @Test @DisplayName("Should write bytes to wire format correctly") void testWriteBytesWireFormat() { // Given when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB302); when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB210);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
} } /** * Test writeBytesWireFormat returns 0 */ @Test @DisplayName("Test writeBytesWireFormat always returns 0") public void testWriteBytesWireFormat() { // Given smbComTreeDisconnect = new SmbComTreeDisconnect(config); byte[] dst = new byte[100]; int dstIndex = 0; // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
assertEquals(expectedAlignedSize, request.size()); } @Test @DisplayName("writeBytesWireFormat should write correct structure") void testWriteBytesWireFormat() { byte[] buffer = new byte[256]; int offset = 64; // Start at offset to test proper indexing int written = request.writeBytesWireFormat(buffer, offset);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java
int result = sdd.writeParameterWordsWireFormat(dst, 0); assertEquals(0, result); } /** * Test writeBytesWireFormat. */ @Test void testWriteBytesWireFormat() { // Assuming path is ASCII and does not use unicode String dirName = "\testDir"; SmbComDeleteDirectory sdd = new SmbComDeleteDirectory(dirName); sdd.useUnicode = false;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
Shinsuke Sugaya <******@****.***> 1755149504 +0900
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.3K bytes - Click Count (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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
} @Nested @DisplayName("Write Bytes Wire Format Tests") class WriteBytesWireFormatTests { @Test @DisplayName("Should return 0 for writeBytesWireFormat") void testWriteBytesWireFormat() { byte[] buffer = new byte[1024]; int result = echoResponse.writeBytesWireFormat(buffer, 0); assertEquals(0, result); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java
// Then assertEquals(0, result); } /** * Test of writeBytesWireFormat method */ @Test public void testWriteBytesWireFormat() { // Given byte[] buffer = new byte[10]; SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config); // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.2K bytes - Click Count (0)