- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 40 for line4 (0.02 seconds)
-
src/test/java/org/codelibs/fess/util/JobProcessTest.java
assertTrue("Should have line4", thread.contains("line4")); assertTrue("Should have line5", thread.contains("line5")); } @Test public void test_emptyInputStream() throws IOException, InterruptedException { Process mockProcess = createMockProcess(""); JobProcess jobProcess = new JobProcess(mockProcess); InputStreamThread thread = jobProcess.getInputStreamThread();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java
thread.join(1000); assertEquals("All lines should be processed", 5000, receivedLines.size()); assertEquals("First line", "Line number 0", receivedLines.get(0)); assertEquals("Last line", "Line number 4999", receivedLines.get(4999)); } @Test public void test_run_concurrentAccess() throws InterruptedException { String input = "concurrent1\nconcurrent2\nconcurrent3";
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 12K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java
String[] inputs = { "input" }; CharMappingItem item = new CharMappingItem(1L, inputs, "output"); // Test newline replacement in setNewOutput item.setNewOutput("line1\nline2\nline3"); assertEquals("line1 line2 line3", item.getNewOutput()); } @Test public void test_setNewOutput_withNull() { String[] inputs = { "input" };
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
// Verify content structure boolean hasThreadLine = lines.stream().anyMatch(line -> line.startsWith("Thread:")); boolean hasStackTraceLine = lines.stream().anyMatch(line -> line.startsWith("\tat ")); assertTrue("Should contain thread information", hasThreadLine); assertTrue("Should contain stack trace information", hasStackTraceLine);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) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java
assertEquals(1, result.size()); assertEquals("f", result.get(0).getOutput()); } // Test reload with comments and empty lines @Test public void test_reload_withCommentsAndEmptyLines() throws Exception { writeTestFile("# This is a comment\n\na,b => c\n\n# Another comment\nd,e => f\n");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java
} } @Test public void test_reload_withEmptyLines() throws Exception { // Create content with empty lines and comments String content = "# Comment line\n" + "\n" + // empty line "word1\n" + " \n" + // whitespace line (may be treated as content) "# Another comment\n" + "word2\n"; // Write content to test file writeTestFile(content);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 21.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
stopwordsFile.reload(null, is); assertEquals(2, stopwordsFile.stopwordsItemList.size()); // The content creates two lines: "word\n1" and "word\" assertTrue(stopwordsFile.stopwordsItemList.stream().anyMatch(item -> item.getInput().contains("word"))); } // Test StopwordsUpdater inner class @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java
String result = scoreUpdater.execute(); // Check format with class name, colon, count, and newline String[] lines = result.split("\n"); assertEquals(2, lines.length); assertTrue(lines[0].matches("TestScoreBooster : \\d+")); assertTrue(lines[1].matches("TestScoreBooster : \\d+")); } // Test with null pointer exception @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 10.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java
assertEquals("return 1 + 2", activityHelper.normalizeScript("return 1 + 2")); } @Test public void test_normalizeScript_withControlCharacters() { assertEquals("line1 line2 line3", activityHelper.normalizeScript("line1\nline2\rline3")); assertEquals("tab1_tab2", activityHelper.normalizeScript("tab1\ttab2")); // \t -> _, \n -> space, \r -> space, \n -> space
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 11:45:43 GMT 2026 - 24.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java
StringBuilder longSubject = new StringBuilder(); StringBuilder longContent = new StringBuilder(); for (int i = 0; i < 100; i++) { longSubject.append("Subject Line ").append(i).append(" "); longContent.append("Content Line ").append(i).append(" with more text. "); } discloser.setSubject(longSubject.toString()); discloser.setPlainText(longContent.toString());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 20K bytes - Click Count (0)