Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for IllegalArgumentException (0.12 sec)

  1. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/MIEName.java

            int i;
            int len;
            if (buf.length < TOK_ID_SIZE + MECH_OID_LEN_SIZE) {
                throw new IllegalArgumentException();
            }
            // TOK_ID
            for (i = 0; i < TOK_ID.length; i++) {
                if (TOK_ID[i] != buf[i]) {
                    throw new IllegalArgumentException();
                }
            }
            // MECH_OID_LEN
            len = 0xff00 & buf[i] << 8;
            i++;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/normalizer/ICUNormalizerTest.java

                fail("Expected IllegalArgumentException");
            } catch (IllegalArgumentException e) {
                assertEquals("transliteratorId must not be null", e.getMessage());
            }
        }
    
        public void test_invalidTransliteratorId() {
            try {
                new ICUNormalizer("Invalid-Transliterator-ID-12345");
                fail("Expected IllegalArgumentException");
            } catch (IllegalArgumentException e) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 17 14:23:01 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        })
        void getSmbTree_invalid(String share, String service) {
            doThrow(new IllegalArgumentException("invalid share/service")).when(session).getSmbTree(eq(share), eq(service));
    
            IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> session.getSmbTree(share, service));
            assertTrue(ex.getMessage().contains("invalid"));
            verify(session).getSmbTree(eq(share), eq(service));
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/RequestParamTest.java

        @DisplayName("valueOf with unknown or differently-cased names throws IllegalArgumentException")
        void valueOfRejectsUnknownOrCaseMismatch(String badName) {
            IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> RequestParam.valueOf(badName));
            assertTrue(ex.getMessage().contains(badName), "Exception message should mention the bad name");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/FileUtilTest.java

         */
        @Test
        public void testReadBytes_NullFile() {
            try {
                FileUtil.readBytes(null);
                fail("Expected IllegalArgumentException");
            } catch (final IllegalArgumentException e) {
                // Expected
            }
        }
    
        /**
         * Test isPathSafe with null path throws exception
         */
        @Test
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java

        private void validateParameters() {
            if (min < 0) {
                throw new IllegalArgumentException("The min parameter cannot be negative.");
            }
            if (max < 0) {
                throw new IllegalArgumentException("The max parameter cannot be negative.");
            }
            if (max < min) {
                throw new IllegalArgumentException("The length cannot be negative.");
            }
        }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java

         *
         * @param key 16-byte array
         * @throws IllegalArgumentException if key is not 16 bytes
         */
        public Smb2LeaseKey(byte[] key) {
            if (key == null) {
                throw new IllegalArgumentException("Lease key cannot be null");
            }
            if (key.length != LEASE_KEY_SIZE) {
                throw new IllegalArgumentException("Lease key must be 16 bytes, got " + key.length);
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/MIENameTest.java

                    // Wrong TOK_ID
                    Arguments.of("wrong TOK_ID", new byte[] { 0x00, 0x02, 0x00, 0x01 }, IllegalArgumentException.class),
    
                    // OID length claims more than available
                    Arguments.of("oid length exceeds buffer", new byte[] { 0x04, 0x01, 0x00, 0x10, 0x06 }, IllegalArgumentException.class),
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

        void testNullKey() {
            assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(null));
        }
    
        @Test
        @DisplayName("Should reject wrong size key")
        void testWrongSizeKey() {
            assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[15]));
            assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[17]));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top