- Sort Score
- Result 10 results
- Languages All
Results 41 - 44 of 44 for StructureSize (1.65 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> notification.readBytesWireFormat(buffer, 0)); assertEquals("Expected structureSize = 24", exception.getMessage()); } @ParameterizedTest @DisplayName("Should read different oplock levels correctly") @ValueSource(bytes = { 0x00, 0x01, 0x02, 0x08, (byte) 0xFF })
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
@DisplayName("Should throw exception for invalid structure size") @ValueSource(ints = { 0, 1, 64, 66, 128 }) void testReadBytesWireFormatInvalidStructureSize(int structureSize) { // Given byte[] buffer = new byte[256]; SMBUtil.writeInt2(structureSize, buffer, 0); // When & Then assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, 0), "Structure size is not 65");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
long chtime, long allocSize, long eof, int attrs, byte[] fileId) { byte[] body = new byte[2 + 2 + 4 + 8 + 8 + 8 + 8 + 8 + 8 + 4 + 4 + 16 + 4 + 4]; int i = 0; SMBUtil.writeInt2(89, body, i); // StructureSize body[i + 2] = oplock; body[i + 3] = openFlags; i += 4; SMBUtil.writeInt4(createAction, body, i); // CreateAction i += 4;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, 0)); assertEquals("Expected structureSize = 60", exception.getMessage()); } @ParameterizedTest @ValueSource(ints = { 0, 10, 20, 30 }) @DisplayName("Should correctly read from different buffer offsets")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0)