- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for testBoundaryValues (0.08 sec)
-
src/test/java/jcifs/util/EncdecTest.java
assertEquals(0x78, buffer[3] & 0xFF); } @ParameterizedTest @ValueSource(ints = { 0, 1, 255, 256, 65535, 65536, Integer.MAX_VALUE }) @DisplayName("Should handle boundary values") void testBoundaryValues(int value) { // Given byte[] buffer = new byte[4]; // When Encdec.enc_uint32le(value, buffer, 0); long decoded = Encdec.dec_uint32le(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
verify(buffer2).dec_ndr_short(); assertEquals(75, ndrShort.value); } @Test @DisplayName("Should handle boundary values correctly") void testBoundaryValues() { // Test various boundary values assertEquals(0, new NdrShort(0).value); assertEquals(255, new NdrShort(255).value);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
assertArrayEquals(NODE, uuid.node); } @Test @DisplayName("Constructor should handle special boundary values") void testBoundaryValues() { // Arrange String boundaryUuid = "80000000-8000-8000-8080-808080808080"; // Act UUID uuid = new UUID(boundaryUuid); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
} ServerResponseValidator.ValidationStats stats = validator.getStats(); assertTrue(stats.getIntegerOverflowsPrevented() > 0); } @Test public void testBoundaryValues() throws Exception { // Test boundary values for safe operations assertEquals(Integer.MAX_VALUE, validator.safeAdd(Integer.MAX_VALUE, 0));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0)