Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for IllegalArgumentException (0.07 sec)

  1. 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)
  2. 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)
  3. 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));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java

            assertEquals(complexMessageCode, exception.getMessageCode());
        }
    
        public void test_causeChainPropagation() {
            // Setup - create a chain of exceptions
            final IllegalArgumentException rootCause = new IllegalArgumentException("Invalid character in query");
            final IllegalStateException middleCause = new IllegalStateException("Query parser state error", rootCause);
            final String message = "Query processing failed";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SecureCredentialStorage.java

            if (masterPassword == null || masterPassword.length == 0) {
                throw new IllegalArgumentException("Master password cannot be null or empty");
            }
            if (salt == null || salt.length != SALT_SIZE) {
                throw new IllegalArgumentException("Invalid salt");
            }
    
            this.salt = salt.clone();
            this.masterKey = deriveKey(masterPassword, this.salt);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java

            SsoProcessException exception1 = new SsoProcessException(message, ioException);
            assertEquals(ioException, exception1.getCause());
    
            // Test with IllegalArgumentException
            Exception illegalArgException = new IllegalArgumentException("Invalid SSO parameter");
            SsoProcessException exception2 = new SsoProcessException(message, illegalArgException);
            assertEquals(illegalArgException, exception2.getCause());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/persistent/HandleType.java

        public static HandleType fromValue(int value) {
            for (HandleType type : values()) {
                if (type.value == value) {
                    return type;
                }
            }
            throw new IllegalArgumentException("Unknown handle type value: " + value);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java

            // Test with IllegalArgumentException
            IllegalArgumentException illegalArgException = new IllegalArgumentException("Invalid parameter");
            SsoLoginException exception2 = new SsoLoginException(message, illegalArgException);
            assertEquals(message, exception2.getMessage());
            assertTrue(exception2.getCause() instanceof IllegalArgumentException);
    
            // Test with NullPointerException
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top