- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for readDataWireFormat (0.07 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/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/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/trans2/Trans2SetFileInformationResponseTest.java
} @Test @DisplayName("Test readDataWireFormat returns 0") void testReadDataWireFormat() { // Test that readDataWireFormat always returns 0 byte[] buffer = new byte[100]; int result = response.readDataWireFormat(buffer, 0, 100); assertEquals(0, result); // Test with different parameters result = response.readDataWireFormat(buffer, 15, 85); assertEquals(0, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
return parametersWireFormatReturn; } @Override protected int readDataWireFormat(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException { if (throwExceptionOnReadData) { throw new SMBProtocolDecodingException("Test exception in readDataWireFormat"); } return dataWireFormatReturn; } // Helper methods for testing
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
} @Test @DisplayName("Test readDataWireFormat with empty servers list") void testReadDataWireFormatEmptyServers() 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 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
@Test @DisplayName("Test readDataWireFormat returns 0") void testReadDataWireFormat() { netShareEnum = new NetShareEnum(realConfig); byte[] buffer = new byte[100]; int result = netShareEnum.readDataWireFormat(buffer, 0, 100); assertEquals(0, result); // Test with different parameters result = netShareEnum.readDataWireFormat(buffer, 50, 50);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0)