Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for rwhitespace (0.05 seconds)

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

            assertNull(exception.getCause());
        }
    
        @Test
        public void test_constructor_withWhitespaceType() {
            // Test constructor with whitespace in type
            String type = "  Bearer Token  ";
            String message = "Whitespace in token type";
            InvalidAccessTokenException exception = new InvalidAccessTokenException(type, message);
    
            assertEquals("  Bearer Token  ", exception.getType());
    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/util/PrunedTagTest.java

            tags = PrunedTag.parse(null);
            assertEquals(0, tags.length);
    
            // Test whitespace only
            tags = PrunedTag.parse("   ");
            assertEquals(0, tags.length);
    
            // Test commas only
            tags = PrunedTag.parse(",,,");
            assertEquals(0, tags.length);
    
            // Test mixed whitespace and commas
            tags = PrunedTag.parse(" , , , ");
            assertEquals(0, tags.length);
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/llm/ChatIntentTest.java

            assertEquals(ChatIntent.UNCLEAR, ChatIntent.fromValue(null));
        }
    
        @Test
        public void test_fromValue_empty() {
            // Defaults to UNCLEAR when value is empty or whitespace
            assertEquals(ChatIntent.UNCLEAR, ChatIntent.fromValue(""));
            assertEquals(ChatIntent.UNCLEAR, ChatIntent.fromValue("   "));
        }
    
        @Test
        public void test_fromValue_unknown() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 01 08:11:18 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/score/LtrQueryRescorerTest.java

            RescorerBuilder<?> result = ltrQueryRescorer.evaluate(params);
            assertNull(result);
        }
    
        @Test
        public void test_evaluate_withWhitespaceModelName() {
            // Test when model name contains only whitespace
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                @Override
                public String getLtrModelName() {
                    return "   ";
                }
    
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/VirtualHostHelperTest.java

            assertEquals("", basePath);
    
            basePath = virtualHostHelper.getVirtualHostBasePath("  ", new HtmlNext("/test"));
            assertEquals("", basePath); // StringUtil.isBlank considers whitespace as blank
        }
    
        @Test
        public void test_getVirtualHostKey() {
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                private static final long serialVersionUID = 1L;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.8K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

            item.setNewInput(newSpecialInput);
            assertEquals(newSpecialInput, item.toLineString());
        }
    
        @Test
        public void test_whitespaceHandling() {
            // Test with various whitespace
            StopwordsItem item1 = new StopwordsItem(1, " ");
            assertEquals(" ", item1.getInput());
            assertEquals(" ", item1.toLineString());
    
            StopwordsItem item2 = new StopwordsItem(2, "\t\n\r");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java

    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            }
            return false;
        }
    
        /**
         * Checks if the password contains at least one special character.
         * A special character is defined as any character that is not a letter, digit, or whitespace.
         *
         * @param password the password to check
         * @return true if the password contains a special character, false otherwise
         */
        protected boolean containsSpecialChar(final String password) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

            item.setNewInput(newSpecialInput);
            assertEquals(newSpecialInput, item.toLineString());
        }
    
        @Test
        public void test_whitespaceHandling() {
            // Test with various whitespace scenarios
            ProtwordsItem item1 = new ProtwordsItem(1, "  word  ");
            assertEquals("  word  ", item1.getInput());
            assertEquals("  word  ", item1.toLineString());
    
    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)
  10. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

            corsFilter.doFilter(mockRequest, mockResponse, mockFilterChain);
    
            assertTrue(mockFilterChain.wasDoFilterCalled());
            assertFalse(corsHandlerFactory.wasGetCalled());
        }
    
        // Test with whitespace-only Origin header
        @Test
        public void test_doFilter_whitespaceOriginHeader() throws IOException, ServletException {
            mockRequest.setHeader("Origin", "   ");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 22.6K bytes
    - Click Count (0)
Back to Top