- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 31 for readDataWireFormat (0.18 seconds)
-
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.2K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (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 testingCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.4K bytes - Click Count (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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.4K bytes - Click Count (0) -
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); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
assertEquals(0, read); } @Test @DisplayName("Test readDataWireFormat returns 0") void testReadDataWireFormat() { trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", 0x16, 10, 1024); byte[] buffer = new byte[100]; int read = trans2FindFirst2.readDataWireFormat(buffer, 0, 100); assertEquals(0, read); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java
assertEquals(0, result); } @Test @DisplayName("Test readDataWireFormat returns 0") void testReadDataWireFormat() { netServerEnum2 = new NetServerEnum2(realConfig, "DOMAIN", NetServerEnum2.SV_TYPE_ALL); byte[] buffer = new byte[100]; int result = netServerEnum2.readDataWireFormat(buffer, 0, 100); assertEquals(0, result); // Test with different parameters
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.7K bytes - Click Count (0)