- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getErrorData (0.65 sec)
-
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
testMessage.setBytesRead(0); int len = testMessage.decode(buffer, 0); assertTrue(len > 0); assertNotNull(testMessage.getErrorData()); assertEquals(5, testMessage.getErrorData().length); } @Test @DisplayName("Should handle compound messages") void testDecodeCompound() throws SMBProtocolDecodingException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
assertNotNull(resp.getErrorData(), "Error data should be decoded"); assertEquals(3, resp.getErrorData().length); assertEquals(2, resp.getErrorContextCount()); assertArrayEquals(new byte[] { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC }, resp.getErrorData()); } @Test void throwsOnUnexpectedStructureSize() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
// When error path is taken, no blob should be parsed assertNull(resp.getBlob(), "Blob should be null on error path"); assertNotNull(resp.getErrorData(), "Error data should be present"); assertArrayEquals(err, resp.getErrorData()); } @Test @DisplayName("Invalid structure size should throw during decode") void testInvalidStructureSizeThrows() {
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/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
} /** * Gets the error data associated with this message. * * @return the errorData */ public final byte[] getErrorData() { return this.errorData; } /** * Gets the error context count for this message. * * @return the errorContextCount */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0)