Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 202 for invalide (0.04 seconds)

  1. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

        @Test
        public void test_constructor_withTypeAndMessage() {
            // Test constructor with type and message
            String type = "Bearer";
            String message = "Invalid access token provided";
            InvalidAccessTokenException exception = new InvalidAccessTokenException(type, message);
    
            assertEquals(type, exception.getType());
            assertEquals(message, exception.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java

    public class InvalidQueryExceptionTest extends UnitFessTestCase {
    
        @Test
        public void test_constructor_withMessageCodeMessageAndCause() {
            // Setup
            final String message = "Invalid query syntax error";
            final Exception cause = new RuntimeException("Query parsing failed");
            final VaMessenger<FessMessages> messageCode = messages -> messages.addErrorsInvalidQueryUnknown(UserMessages.GLOBAL_PROPERTY_KEY);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/LdapOperationExceptionTest.java

            }
            assertTrue(foundTestMethod);
        }
    
        @Test
        public void test_nestedExceptions() {
            // Test nested exception handling
            Exception innerCause = new IllegalArgumentException("Invalid LDAP parameter");
            RuntimeException middleCause = new RuntimeException("LDAP configuration error", innerCause);
            LdapOperationException exception = new LdapOperationException("LDAP operation failed", middleCause);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/chat/ChatSessionManager.java

         */
        protected int getSessionTimeoutMinutes() {
            final int value = ComponentUtil.getFessConfig().getRagChatSessionTimeoutMinutesAsInteger();
            if (value <= 0) {
                logger.warn("Invalid session timeout: {}. Using default: 30", value);
                return 30;
            }
            return value;
        }
    
        /**
         * Gets the maximum session cache size.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/pager/CrawlingInfoPager.java

            this.existNextPage = existNextPage;
        }
    
        /**
         * Gets the number of records to display per page.
         * If the page size is not set or is invalid (≤0), returns the default page size.
         *
         * @return the page size
         */
        public int getPageSize() {
            if (pageSize <= 0) {
                pageSize = getDefaultPageSize();
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/pager/FailureUrlPager.java

         */
        public void setExistNextPage(final boolean existNextPage) {
            this.existNextPage = existNextPage;
        }
    
        /**
         * Gets the number of records per page.
         * If not set or invalid, returns the default page size.
         *
         * @return the page size
         */
        public int getPageSize() {
            if (pageSize <= 0) {
                pageSize = getDefaultPageSize();
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/SambaHelperTest.java

            // Test unavailable SID type (type 6 - DELETED)
            assertNull(sambaHelper.getAccountId(createMockSID(6, "Deleted Account")));
    
            // Test unavailable SID type (type 7 - INVALID)
            assertNull(sambaHelper.getAccountId(createMockSID(7, "Invalid Account")));
        }
    
        @Test
        public void test_getAccountId_smb1_basic() throws SmbException {
            // Note: SMB1 SID testing is limited due to interface constraints
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java

        public void test_constructor_withMessageAndCause() {
            // Test constructor with message and Exception cause
            String message = "SSO token validation error";
            Exception cause = new RuntimeException("Invalid token format");
            SsoProcessException exception = new SsoProcessException(message, cause);
    
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java

            validator.initialize(annotation);
    
            // Test that the method can be called (even if context handling is complex)
            try {
                final boolean result = validator.isValid("test", null);
                assertNotNull(Boolean.valueOf(result), "isValid should return a boolean result");
            } catch (final NullPointerException e) {
                // This is expected if the implementation requires a non-null context
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/sso/SsoResponseTypeTest.java

        @Test
        public void test_valueOf_invalidName() {
            // Test valueOf with invalid name throws exception
            try {
                SsoResponseType.valueOf("INVALID");
                fail("Expected IllegalArgumentException");
            } catch (IllegalArgumentException e) {
                // Expected exception
                assertTrue(e.getMessage().contains("INVALID"));
            }
        }
    
        @Test
        public void test_valueOf_null() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 6.3K bytes
    - Click Count (0)
Back to Top