- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 425 for IllegalArgumentException (0.07 sec)
-
src/test/java/jcifs/dcerpc/UUIDTest.java
void testConstructorWithStringInvalidCharacter() { // Arrange String invalidUuid = "00112233-4455-6677-8899-AABBCCDDEXX"; // 'X' is invalid // Act & Assert assertThrows(IllegalArgumentException.class, () -> new UUID(invalidUuid), "Should throw IllegalArgumentException for invalid character in UUID string");
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/smb1/http/NtlmHttpServletRequestTest.java
void testConstructorWithNullHttpRequest(@Mock Principal mockPrincipal) { // HttpServletRequestWrapper throws IllegalArgumentException for null request IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> new NtlmHttpServletRequest(null, mockPrincipal)); assertEquals("Request cannot be null", ex.getMessage()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/org/codelibs/opensearch/extension/analysis/SynonymLoader.java
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Sun May 18 02:59:16 UTC 2025 - 6.7K bytes - Viewed (1) -
src/test/java/jcifs/internal/witness/WitnessEnumTest.java
// Test that invalid valueOf throws exception assertThrows(IllegalArgumentException.class, () -> { WitnessServiceType.valueOf("INVALID_TYPE"); }); assertThrows(IllegalArgumentException.class, () -> { WitnessVersion.valueOf("INVALID_VERSION"); }); assertThrows(IllegalArgumentException.class, () -> { WitnessEventType.valueOf("INVALID_EVENT");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
} @Test @DisplayName("Should create exception with root cause") void testConstructorWithRootCause() { Exception rootCause = new IllegalArgumentException("Root cause exception"); TransportException exception = new TransportException(rootCause); assertNotNull(exception); assertNull(exception.getMessage());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ReflectionFreeAssertThrows.java
e -> e instanceof ConcurrentModificationException) .put(ExecutionException.class, e -> e instanceof ExecutionException) .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
} @Test void testMapInformationLevelWithInvalidLevel() { // Test invalid information level IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> Trans2QueryPathInformation.mapInformationLevel(999)); assertTrue(exception.getMessage().contains("Unsupported information level")); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
@DisplayName("Test invalid configuration") void testInvalidConfiguration() { assertThrows(IllegalArgumentException.class, () -> new SimpleCircuitBreaker("invalid", 0, 2, 100)); assertThrows(IllegalArgumentException.class, () -> new SimpleCircuitBreaker("invalid", 3, 0, 100)); assertThrows(IllegalArgumentException.class, () -> new SimpleCircuitBreaker("invalid", 3, 2, -1)); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/util/InputValidatorTest.java
assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(null, 0, dst, 0, 10)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(src, 0, null, 0, 10)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(src, -1, dst, 0, 10));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
* @throws IllegalArgumentException if size is invalid */ public static void validateBufferSize(int size, int maxSize, String fieldName) { if (size < 0) { throw new IllegalArgumentException(fieldName + " size cannot be negative: " + size); } if (size > maxSize) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0)