- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 108 for readDataWireFormat (0.08 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
} } @Test @DisplayName("readDataWireFormat should return 0") void testReadDataWireFormat() { // Arrange byte[] buffer = new byte[100]; int bufferIndex = 0; int len = 100; // Act int result = response.readDataWireFormat(buffer, bufferIndex, len); // Assert assertEquals(0, result); }
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/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
} @Test @DisplayName("Test readDataWireFormat with error code returns 4") void testReadDataWireFormatWithErrorCode() throws Exception { byte[] buffer = new byte[100]; // Set error code to non-zero setErrorCode(response, 1); int result = response.readDataWireFormat(buffer, 0, buffer.length); assertEquals(4, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
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/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
void testReadDataWireFormat() { byte[] buffer = createValidDfsReferralBuffer(); int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); assertTrue(bytesRead > 0); // readDataWireFormat returns bytes consumed from header, not full buffer assertEquals(28, bytesRead); // Header + one referral structure
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K 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/trans2/Trans2QueryFSInformationResponseTest.java
// Test multiple calls to readDataWireFormat response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION); // Prepare buffer byte[] buffer = prepareAllocationInfoBuffer(); // Set dataCount setDataCount(response, 20); // First read int bytesRead1 = response.readDataWireFormat(buffer, 0, 20);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
} } @Test @DisplayName("Test readDataWireFormat with empty shares list") void testReadDataWireFormatEmptyShares() throws Exception { setNumEntries(response, 0); byte[] buffer = new byte[100]; int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); assertEquals(0, bytesRead);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO); // Simulate setting info through readDataWireFormat byte[] buffer = createMockFileBasicInfoBuffer(); response.setDataCount(buffer.length); response.readDataWireFormat(buffer, 0, buffer.length); FileBasicInfo info = response.getInfo(FileBasicInfo.class); assertNotNull(info);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K 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)