- Sort Score
- Result 10 results
- Languages All
Results 21 - 26 of 26 for test_encode (0.28 sec)
-
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
assertEquals(22, bytesDecoded); assertEquals(expectedEndOfFile, fileStandardInfo.getSize()); } @Test @DisplayName("Test encode with various values") void testEncode() throws SMBProtocolDecodingException { // First decode to set internal state byte[] sourceBuffer = new byte[22]; long expectedAllocationSize = 16384L; long expectedEndOfFile = 12288L;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
assertNotNull(str); assertTrue(str.length() > "Trans2SetFileInformationResponse[]".length()); } @Test @DisplayName("Test decode method") void testDecode() throws Exception { // Test the decode method which is inherited from ServerMessageBlock byte[] buffer = new byte[256]; // Set up a minimal SMB header (size 32 bytes) // SMB signature
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/smb2/create/CreateContextRequestTest.java
assertNull(nullNameRequest.getName()); } @Test @DisplayName("Should encode data correctly") void testEncode() { int result = testRequest.encode(testBuffer, 10); assertTrue(result > 0); assertEquals(1, testRequest.getEncodeCallCount()); // Verify header was written
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
assertEquals(null, nullNameResponse.getName()); } @Test @DisplayName("Should decode data correctly") void testDecode() throws SMBProtocolDecodingException { int length = 50; int result = testResponse.decode(testBuffer, 10, length); assertEquals(length, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
} } @Nested @DisplayName("Encode/Decode Tests") class EncodeDecodeTests { @Test @DisplayName("Should encode message correctly") void testEncode() { byte[] buffer = new byte[1024]; testMessage.setBytesWritten(10); testMessage.setMid(12345L); testMessage.setSessionId(67890L); testMessage.setTreeId(789);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0)