Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 113 for blank (0.08 seconds)

  1. src/test/java/org/codelibs/fess/crawler/FessCrawlerThreadTest.java

        }
    
        /**
         * Test getAnchorSet with blank string
         */
        @Test
        public void test_getAnchorSet_withBlankString() {
            FessCrawlerThread crawlerThread = new FessCrawlerThread();
    
            Set<RequestData> result = crawlerThread.getAnchorSet("");
            assertNull(result, "getAnchorSet should return null for blank string");
    
            result = crawlerThread.getAnchorSet("   ");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java

            assertEquals(expected, ldapManager.escapeLDAPSearchFilter(input));
        }
    
        // ========================================================================
        // Tests for Defensive Null/Blank Checks
        // ========================================================================
    
        @Test
        public void test_getSAMAccountGroupName_withNullBindDn() {
            LdapManager ldapManager = new LdapManager();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

            super.setUp(testInfo);
            notificationHelper = new NotificationHelper();
        }
    
        @Test
        public void test_sendToSlack_withBlankWebhookUrls() {
            // Setup mock configuration with blank webhook URLs
            ComponentUtil.setFessConfig(new MockFessConfig() {
                @Override
                public String getSlackWebhookUrls() {
                    return "";
                }
            });
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 20K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java

            assertEquals("others", fileTypeHelper.get(" "));
        }
    
        @Test
        public void test_get_withBlankFiletype() {
            fileTypeHelper.add("test/blank", "");
            assertEquals("others", fileTypeHelper.get("test/blank"));
    
            fileTypeHelper.add("test/null", null);
            assertEquals("others", fileTypeHelper.get("test/null"));
        }
    
        @Test
        public void test_getDefaultValue() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/RelatedQueryHelper.java

        }
    
        /**
         * Extracts the virtual host key from a RelatedQuery entity.
         * If the virtual host is blank or null, returns an empty string.
         *
         * @param entity the RelatedQuery entity to extract the host key from
         * @return the virtual host key, or empty string if blank or null
         */
        protected String getHostKey(final RelatedQuery entity) {
            final String key = entity.getVirtualHost();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

            // Verify
            assertTrue(result.isPresent());
            assertEquals(Locale.UK, result.get());
        }
    
        // Test findBusinessLocale with blank parameter name
        @Test
        public void test_findBusinessLocale_withBlankParameterName() {
            // Setup mock config with blank parameter name
            FessConfig mockConfig = new FessConfig.SimpleImpl() {
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/ldap/LdapManager.java

         * <ul>
         * <li>Checks if username and password are not blank</li>
         * <li>Verifies LDAP admin is enabled for the user</li>
         * <li>Confirms the user exists in LDAP directory</li>
         * </ul>
         *
         * @param username the username of the user (must not be null or blank)
         * @param password the new password (must not be null or blank)
         * @return true if the password was changed successfully, false otherwise
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 08:06:20 GMT 2026
    - 85.2K bytes
    - Click Count (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

        public void addClient(final String regex, final CrawlerClient client) {
            if (StringUtil.isBlank(regex)) {
                throw new CrawlerSystemException(
                        "URL pattern regular expression is null or blank. Cannot register client without a valid pattern.");
            }
            if (client == null) {
                throw new CrawlerSystemException("CrawlerClient instance is null. Cannot register null client.");
            }
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/lang/StringUtil.java

            chars[0] = Character.toUpperCase(chars[0]);
            return new String(chars);
        }
    
        /**
         * Returns true if the string is blank.
         *
         * @param str
         *            the string to check
         * @return {@literal true} if the string is blank
         */
        public static boolean isBlank(final String str) {
            if (str == null || str.length() == 0) {
                return true;
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 21.5K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/app/web/base/FessAdminActionTest.java

                action.validateFilePath("");
                fail("Expected IllegalArgumentException");
            } catch (final IllegalArgumentException e) {
                assertTrue("Error message should indicate blank path: " + e.getMessage(), e.getMessage().contains("blank"));
            }
        }
    
        // ===================================================================================
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 22.7K bytes
    - Click Count (0)
Back to Top