Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 214 for expects (0.03 seconds)

  1. src/main/java/org/codelibs/fess/util/PrunedTag.java

                    }
                    return tag;
                }
                throw new FessSystemException("Invalid pruned tag format: '" + v
                        + "'. Expected format: tagname[attr=value].classname#id (e.g., div.content, span#header, p[data-type=ad])");
            }).toArray(n -> new PrunedTag[n]));
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Nov 24 04:23:08 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java

        //                                                                        ============
        /**
         * Verifies that the CRUD mode matches the expected mode.
         *
         * @param crudMode the current CRUD mode
         * @param expectedMode the expected CRUD mode
         * @param dictId the dictionary ID for error handling
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 23.7K bytes
    - Click Count (1)
  3. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            try {
                authenticationManager.insert(user);
                fail("Should throw NullPointerException when processing null chain");
            } catch (NullPointerException e) {
                // Expected behavior when null chain is processed
                assertTrue(true);
            }
        }
    
        // Test chains order preservation
        @Test
        public void test_chains_orderPreservation() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/mylasta/direction/FessEnvTest.java

                }
            };
    
            try {
                customEnv.getTimeAdjustTimeMillisAsLong();
                fail("Should throw NumberFormatException");
            } catch (NumberFormatException e) {
                // Expected exception
                assertNotNull(e);
            }
        }
    
        // Test various numeric values for time adjust
        public void xtest_getTimeAdjustTimeMillisAsLong_variousValues() {
            // Test negative value
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/service/BadWordService.java

                searchEngineClient.refresh("_all"); // TODO replace _all
            } catch (final IOException e) {
                logger.warn("Failed to read a suggest bad word.", e);
            }
        }
    
        /**
         * Exports bad words to a CSV file.
         * @param writer The writer for the CSV output.
         */
        public void exportCsv(final Writer writer) {
            final CsvConfig cfg = new CsvConfig(',', '"', '"');
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  6. src/main/webapp/js/admin/plugins/daterangepicker/daterangepicker.js

                if (typeof moment !== 'function' && moment.hasOwnProperty('default')) moment = moment['default']
                return factory(moment, jquery);
            });
        } else if (typeof module === 'object' && module.exports) {
            // Node / Browserify
            //isomorphic issue
            var jQuery = (typeof window != 'undefined') ? window.jQuery : undefined;
            if (!jQuery) {
                jQuery = require('jquery');
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Oct 26 01:49:09 GMT 2024
    - 64.8K bytes
    - Click Count (0)
  7. src/test/resources/thumbnail/test_generate_thumbnail.sh

        local actual_result=$?
    
        if [[ "${actual_result}" -eq "${expected_result}" ]]; then
            echo -e "${GREEN}PASSED${NC}"
            ((TESTS_PASSED++))
            return 0
        else
            echo -e "${RED}FAILED${NC} (expected: ${expected_result}, got: ${actual_result})"
            ((TESTS_FAILED++))
            return 1
        fi
    }
    
    # Test function for checking file existence
    run_file_test() {
        local test_name="$1"
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 04 08:02:36 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessTimeResourceProviderTest.java

            try {
                new FessTimeResourceProvider(null);
                // Constructor may accept null, so test continues
                assertTrue(true);
            } catch (NullPointerException e) {
                // Expected if constructor validates input
                assertTrue(true);
            }
        }
    
        // Test with different time adjustments
        @Test
        public void test_withDifferentTimeAdjustments() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

                // May throw exception or return result - both acceptable
                if (result != null) {
                    assertEquals(128, result.length());
                }
            } catch (Exception e) {
                // Expected for empty map without URL
            }
    
            // Test with null URL
            Map<String, Object> nullUrlMap = new HashMap<>();
            nullUrlMap.put("url", null);
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

            long startTime = System.currentTimeMillis();
            try {
                dataIndexHelper.crawl("performance-test");
            } catch (Exception e) {
                // Expected
            }
            long duration = System.currentTimeMillis() - startTime;
    
            // Test should complete in under 1 second (much less than the original 25+ seconds)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.9K bytes
    - Click Count (0)
Back to Top