- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for simulate (0.05 sec)
-
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
// Create a hook that simulates an exception scenario AtomicBoolean exceptionHandled = new AtomicBoolean(false); FessCurtainFinallyHook customHook = new FessCurtainFinallyHook() { @Override public void hook(final FwAssistantDirector assistantDirector) { try { // Simulate a scenario where the method exists but invocation fails
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java
} // Test handling of processing exception public void test_execute_withProcessingException() { // Create a mock that returns 0 to simulate processing error SearchEngineClient errorClient = new SearchEngineClient() { @Override public long updateByQuery(String index,
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java
Exception exception = new Exception() { @Override public void printStackTrace(java.io.PrintWriter writer) { // Simulate a normal stack trace output writer.println("Special test exception"); writer.flush(); } }; monitorTarget.appendException(buf, exception);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
// We can't easily test the static process method directly without full container setup // So we'll test the Options behavior separately assertNull(options.sessionId); // Simulate what process() does - generate default sessionId if (options.sessionId == null) { SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 30.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/DataStoreTest.java
dataStore = new DataStore() { @Override public void store(DataConfig config, IndexUpdateCallback callback, DataStoreParams initParamMap) { // Simulate storing documents Map<String, Object> doc1 = new HashMap<>(); doc1.put("id", "1"); doc1.put("title", "Document 1"); callback.store(initParamMap, doc1);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java
// Test empty directory deletion logic File emptyDir = new File(tempDir, "empty"); emptyDir.mkdirs(); assertTrue(emptyDir.exists()); // Simulate the behavior of postVisitDirectory - delete empty directories if (emptyDir.isDirectory() && emptyDir.list().length == 0) { emptyDir.delete(); } assertFalse(emptyDir.exists());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessConfigImplTest.java
} } // Test property filter returning null simulation public void test_get_filterReturnsNull() { // The filter.null property is configured to simulate null filter behavior try { fessConfig.get("filter.null"); fail("Should throw exception when property is not found"); } catch (ConfigPropertyNotFoundException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/script/ScriptEngineTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.3K bytes - Viewed (0)