- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 77 for readDataWireFormat (0.08 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
// First read response.readDataWireFormat(buffer1, 0, firstData.length); byte[] firstResult = new byte[firstData.length]; System.arraycopy(outputBuffer, 0, firstResult, 0, firstData.length); assertArrayEquals(firstData, firstResult); // Second read (should overwrite) response.readDataWireFormat(buffer2, 0, secondData.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java
} /** * Tests the readDataWireFormat method when the pipe's input stream is null. */ @Test void testReadDataWireFormat_withNullPipeIn() { mockPipe.pipeIn = null; byte[] buffer = new byte[10]; int len = 10; int result = response.readDataWireFormat(buffer, 0, len); assertEquals(len, result, "readDataWireFormat should return the length when pipeIn is null.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
} @Test void testReadDataWireFormatWithNegativeLength() { byte[] buffer = new byte[100]; // Negative length should cause ArrayIndexOutOfBoundsException from System.arraycopy assertThrows(ArrayIndexOutOfBoundsException.class, () -> response.readDataWireFormat(buffer, 0, -1)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java
} /** * Test for the readDataWireFormat method. * It should always return 0. */ @Test void testReadDataWireFormat() { byte[] buffer = new byte[10]; // The method should not read anything and return 0 assertEquals(0, response.readDataWireFormat(buffer, 0, 10), "readDataWireFormat should return 0."); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
@ValueSource(ints = { 0, 4, -4, Integer.MAX_VALUE }) @DisplayName("readDataWireFormat returns 0 regardless of buffer and length") void readDataWireFormatReturnsZero(int len) { TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse(); assertEquals(0, resp.readDataWireFormat(new byte[10], 0, len), "readDataWireFormat should always return 0"); } } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
} /** * Tests the readDataWireFormat method with an unknown information level. */ @Test void testReadDataWireFormat_UnknownInformationLevel() { Trans2QueryFSInformationResponse response = new Trans2QueryFSInformationResponse(999); // Unknown level byte[] buffer = new byte[10]; int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java
assertEquals(20, paramBytes, "readParametersWireFormat should return expected bytes"); int dataBytes = transaction.readDataWireFormat(buffer, 0, 60); assertEquals(50, dataBytes, "readDataWireFormat should return expected bytes"); } @Test @DisplayName("Test hasMoreElements becomes false when all data is sent") void testHasMoreElementsBecomeFalse() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
} /** * Tests the readDataWireFormat method. */ @Test void testReadDataWireFormat() { // Given Trans2QueryPathInformation trans = new Trans2QueryPathInformation("anyfile.txt", 0); byte[] buffer = new byte[10]; // When int bytesRead = trans.readDataWireFormat(buffer, 0, 10); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java
} @Test public void testReadDataWireFormat() { // Test that readDataWireFormat returns 0 TransWaitNamedPipe pipe = new TransWaitNamedPipe("\\\\pipe\\testPipe"); byte[] buffer = new byte[100]; int consumed = pipe.readDataWireFormat(buffer, 0, 10); assertEquals(0, consumed, "readDataWireFormat should return 0"); } @Test public void testToString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
assertEquals(0, result); } /** * Test the readDataWireFormat method. */ @Test void testReadDataWireFormat() { byte[] buffer = new byte[10]; int result = netServerEnum2.readDataWireFormat(buffer, 0, 10); assertEquals(0, result); } /** * Test the toString method with SV_TYPE_ALL.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.6K bytes - Viewed (0)