- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for IllegalArgumentException (0.12 sec)
-
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 */ @TestRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/settings/BadWordSettingsTest.java
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Sun Nov 23 13:04:17 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java
if (StringUtil.isBlank(path)) { throw new IllegalArgumentException("File path cannot be empty"); } try { final Path filePath = Paths.get(path).normalize(); final String normalizedPath = filePath.toString(); if (normalizedPath.contains("..")) { throw new IllegalArgumentException("Invalid file path"); }
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 27 07:01:25 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
*/ public void testCreateCustomFilter_NullPatterns() { try { SerializeUtil.createCustomFilter(null); fail("Expected IllegalArgumentException"); } catch (final IllegalArgumentException e) { // Expected } } /** * Test serialization with empty array * * @throws Exception */Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 7.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/Request.java
*/ public Deferred<T>.Promise execute(final Client client) { final String error = getValidationError(); if (!Strings.isNullOrEmpty(error)) { throw new IllegalArgumentException(error); } final Deferred<T> deferred = new Deferred<>(); try { processRequest(client, deferred); } catch (final Exception e) {Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Sun Nov 23 11:21:40 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java
assertEquals("another", result.get(2)); } @Test(expected = IllegalArgumentException.class) public void testGetAsListWithArray() { // Test with array (should throw exception) String[] array = { "one", "two" }; SuggestUtil.getAsList(array); } @Test(expected = IllegalArgumentException.class) public void testGetAsListWithDouble() {
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 26.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/QueryProcessor.java
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 7.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
* @return complete URL with context path and optional timestamp parameter * @throws IllegalArgumentException if input is null or doesn't start with '/' */ public static String url(final String input) { if (input == null) { final String msg = "The argument 'input' should not be null."; throw new IllegalArgumentException(msg); } if (!input.startsWith("/")) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 25.4K bytes - Viewed (1) -
src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java
* @param badWord Bad word */ public void add(final String badWord) { final String validationError = getValidationError(badWord); if (validationError != null) { throw new IllegalArgumentException("Validation error: " + validationError); } if (logger.isDebugEnabled()) { logger.debug("Adding bad word: index={}, word={}", arraySettings.arraySettingsIndexName, badWord); }Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Sun Nov 23 03:02:17 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/script/ScriptEngineFactory.java
* @param scriptEngine The script engine. */ public void add(final String name, final ScriptEngine scriptEngine) { if (name == null || scriptEngine == null) { throw new IllegalArgumentException( "Both name and scriptEngine parameters are required. name: " + name + ", scriptEngine: " + scriptEngine); } if (logger.isDebugEnabled()) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 2.6K bytes - Viewed (0)