- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for testReadDataWireFormat (0.16 sec)
-
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); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K 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/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); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.6K bytes - Viewed (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;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (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]; // When
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
int consumed = pipe.readParametersWireFormat(buffer, 0, 10); assertEquals(0, consumed, "readParametersWireFormat should return 0"); } @Test public void testReadDataWireFormat() { // Test that readDataWireFormat returns 0 TransWaitNamedPipe pipe = new TransWaitNamedPipe("\\\\pipe\\testPipe"); byte[] buffer = new byte[100];
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/TransTransactNamedPipeTest.java
// Assert assertEquals(0, bytesRead); } @Test @DisplayName("Test readDataWireFormat returns 0") void testReadDataWireFormat() { // Arrange TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH); byte[] buffer = new byte[10]; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
// Assert assertEquals(0, result); } @Test @DisplayName("readDataWireFormat should return 0") void testReadDataWireFormat() { // Arrange transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName); byte[] buffer = new byte[10]; // Act
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/Trans2FindFirst2ResponseTest.java
assertFalse(response.isEndOfSearch); assertEquals(3, response.eaErrorOffset); assertEquals(4, response.lastNameOffset); } @Test void testReadDataWireFormat() { response.numEntries = 1; response.lastNameOffset = 94; // Pointing to the start of the filename response.useUnicode = false; // Use OEM for simplicity
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0)