- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for anyString (0.27 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java
public void test_run_noUrlsInQueue() throws Exception { when(urlQueueService.poll(anyString())).thenReturn(null); crawlerContext.setStatus(CrawlerStatus.RUNNING); crawlerContext.maxThreadCheckCount = 1; // Will exit after 1 check crawlerThread.run(); verify(urlQueueService, times(1)).poll(anyString()); } /** * Test run method with crawler status DONE. */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 18.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
} // Should not throw exception for file with only comments assertNotNull(robotsTxt); // Everything should be allowed by default assertTrue(robotsTxt.allows("/anything", "AnyBot")); } public void testParse_onlyWhitespace() { RobotsTxt robotsTxt; final InputStream in = RobotsTxtHelperTest.class.getResourceAsStream("robots_only_whitespace.txt");Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 20.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java
} } // If pattern doesn't end with $, it implicitly matches anything after it if (pattern.isEmpty() || pattern.charAt(pattern.length() - 1) != '$') { // This makes "/fish" match "/fish", "/fishing", "/fish/", etc. // No need to add anything - the pattern naturally continues } return Pattern.compile(regex.toString());Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 18.5K bytes - Viewed (0)