- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 61 for SMBProtocolDecodingException (0.26 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
void testInvalidStructureSizes(int structureSize) { byte[] buffer = new byte[64]; SMBUtil.writeInt2(structureSize, buffer, 0); SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, 0)); assertEquals("Expected structureSize = 17", exception.getMessage()); } @Test
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/nego/EncryptionNegotiateContextTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.Configuration; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Test class for EncryptionNegotiateContext */ @ExtendWith(MockitoExtension.class) @DisplayName("EncryptionNegotiateContext Tests")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
int offset = 0; // Write invalid structure size SMBUtil.writeInt2(structureSize, buffer, offset); // When & Then SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, offset)); assertEquals("Structure size is not 16", exception.getMessage()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Test class for FileStandardInfo */ class FileStandardInfoTest { private FileStandardInfo fileStandardInfo; @BeforeEach
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/FileRenameInformation2Test.java
import java.nio.charset.StandardCharsets; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Test class for FileRenameInformation2 */ @DisplayName("FileRenameInformation2 Tests") class FileRenameInformation2Test {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
// Set structure size to 4 (invalid, should be 2) SMBUtil.writeInt2(4, buffer, bufferIndex); SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, bufferIndex), "Should throw SMBProtocolDecodingException for invalid structure size"); assertEquals("Expected structureSize = 2", exception.getMessage()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
@Override public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException { decodeCallCount++; if (throwOnDecode) { throw new SMBProtocolDecodingException("Test decode error"); } if (buffer == null) { throw new SMBProtocolDecodingException("Buffer cannot be null"); } if (bufferIndex < 0 || len < 0) {
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/lock/Smb2LockResponseTest.java
int bufferIndex = 0; SMBUtil.writeInt2(5, buffer, bufferIndex); // Invalid structure size // When & Then SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, bufferIndex)); assertEquals("Expected structureSize = 4", exception.getMessage()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
* @param len length of data to read * @return number of bytes read * @throws SMBProtocolDecodingException if decoding fails */ protected abstract int readParametersWireFormat(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException; /** * Reads data from wire format * @param buffer source buffer
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; @ExtendWith(MockitoExtension.class) class SrvCopyChunkCopyResponseTest { private SrvCopyChunkCopyResponse response; @BeforeEach void setUp() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0)