- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for testMaximumValues (0.57 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
assertEquals(remaining, response.getRemaining()); } @Test @DisplayName("Should handle maximum integer values") void testMaximumValues() throws SMBProtocolDecodingException { byte[] buffer = createValidWriteResponse(Integer.MAX_VALUE, Integer.MAX_VALUE); int bytesRead = response.readBytesWireFormat(buffer, 0);
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/tree/Smb2TreeConnectResponseTest.java
Arguments.of(0xFFFF, true) // All flags including DFS ); } @Test @DisplayName("Should handle maximum values for all fields") void testMaximumValues() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[256]; SMBUtil.writeInt2(16, buffer, 0); buffer[2] = (byte) 0xFF; // Max share type buffer[3] = 0;
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/smb2/Smb2CancelRequestTest.java
assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set for non-zero asyncId"); } @Test @DisplayName("Test edge case with maximum values") void testMaximumValues() { // Given long maxMid = Long.MAX_VALUE; long maxAsyncId = Long.MAX_VALUE; int maxCredits = Integer.MAX_VALUE; int maxTreeId = Integer.MAX_VALUE; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
// Should still read 37 bytes regardless of reserved byte values assertEquals(37, bytesRead); } @Test @DisplayName("Test handling of maximum values") void testMaximumValues() throws Exception { byte[] buffer = new byte[100]; int bufferIndex = 0; // Reserved bytes buffer[bufferIndex] = 0x00; buffer[bufferIndex + 1] = 0x00;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
} } @Nested @DisplayName("Edge Case Tests") class EdgeCaseTests { @Test @DisplayName("Should handle maximum values") void testMaximumValues() throws SMBProtocolDecodingException { byte[] buffer = createValidCopyChunkResponse(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
} } @Nested @DisplayName("Edge Cases and Boundary Tests") class EdgeCaseTests { @Test @DisplayName("Should handle maximum values") void testMaximumValues() { byte[] testBuffer = new byte[8]; ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); bb.putShort((short) 0xFFFE); // Max even pathConsumed
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
} @Nested @DisplayName("Performance and Boundary Tests") class PerformanceTests { @Test @DisplayName("Should handle maximum values without overflow") void testMaximumValues() throws SMBProtocolDecodingException { FileFsFullSizeInformation info = new FileFsFullSizeInformation(); byte[] buffer = new byte[32]; // Set all bytes to 0xFF for maximum values
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/smb2/io/Smb2ReadRequestTest.java
assertEquals(0, SMBUtil.readInt4(buffer, 40)); // Default remaining bytes } @Test @DisplayName("Should handle maximum values correctly") void testMaximumValues() { request.setPadding((byte) 0xFF); request.setReadFlags((byte) 0xFF); request.setReadLength(Integer.MAX_VALUE); request.setOffset(Long.MAX_VALUE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
assertTrue(result.contains("altPath=null")); assertTrue(result.contains("node=NODE")); } // Edge Cases and Boundary Tests @Test public void testMaximumValues() { ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); bb.putShort((short) 3); bb.putShort((short) 65535); // max unsigned short bb.putShort((short) 65535);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
} @Test @DisplayName("Should handle maximum values correctly") void testMaximumValues() { request.setOffset(Long.MAX_VALUE); request.setRemainingBytes(Integer.MAX_VALUE); request.setWriteFlags(Integer.MAX_VALUE); request.setData(new byte[10], 0, 10);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0)