- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 37 for testReadDataWireFormat (0.73 seconds)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
assertEquals(0, result); } @Test @DisplayName("Should decode DFS referral data correctly") void testReadDataWireFormat() { byte[] buffer = createValidDfsReferralBuffer(); int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); assertTrue(bytesRead > 0);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/smb1/smb1/Trans2SetFileInformationTest.java
// When int result = trans2SetFileInformation.readParametersWireFormat(new byte[0], 0, 0); // Then assertEquals(0, result); } @Test void testReadDataWireFormat() { // When int result = trans2SetFileInformation.readDataWireFormat(new byte[0], 0, 0); // Then assertEquals(0, result); } @TestCreated: 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/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."); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
} /** * Tests the readDataWireFormat method. * This test simulates a response with two share entries. */ @Test void testReadDataWireFormat() throws IOException { NetShareEnumResponse response = new NetShareEnumResponse(); // Manually set parameters that would be read by readParametersWireFormat response.numEntries = 2;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
int result = response.readParametersWireFormat(buffer, 0, buffer.length); assertEquals(42, result); } @Test @DisplayName("Test readDataWireFormat") void testReadDataWireFormat() throws SMBProtocolDecodingException { byte[] buffer = new byte[256]; response.setDataWireFormatReturn(84); int result = response.readDataWireFormat(buffer, 0, buffer.length);
Created: 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/trans/TransTransactNamedPipeResponseTest.java
Shinsuke Sugaya <******@****.***> 1755149504 +0900
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
int result = netServerEnum2.readParametersWireFormat(buffer, 0, 10); 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); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
Shinsuke Sugaya <******@****.***> 1755149504 +0900
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/smb1/smb1/Trans2QueryPathInformationTest.java
// Then assertEquals(0, bytesRead, "Should read 0 bytes."); } /** * Tests the readDataWireFormat method. */ @Test void testReadDataWireFormat() { // Given Trans2QueryPathInformation trans = new Trans2QueryPathInformation("anyfile.txt", 0); byte[] buffer = new byte[10]; // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
Shinsuke Sugaya <******@****.***> 1755149504 +0900
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.8K bytes - Click Count (0)