- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 44 for simulate (0.06 sec)
-
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) -
src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java
// Second immediate call should use cache names = testFactory.getDataStoreNames(); assertEquals(2, names.length); assertEquals(1, loadCount[0]); // Should not increment // Simulate time passing (more than 60 seconds) testFactory.lastLoadedTime = System.currentTimeMillis() - 61000L; // Should reload after cache expiry names = testFactory.getDataStoreNames();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java
// Test exception in a more complex scenario InvalidAccessTokenException exception = null; String expectedType = "Bearer"; String expectedMessage = "Token has expired"; // Simulate a token validation scenario boolean tokenValid = false; if (!tokenValid) { exception = new InvalidAccessTokenException(expectedType, expectedMessage); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/PythonJobTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 22.1K bytes - Viewed (0) -
mockwebserver/README.md
```kotlin val response = MockResponse.Builder() .addHeader("Content-Type", "application/json; charset=utf-8") .addHeader("Cache-Control", "no-cache") .body("{}") .build() ``` MockResponse can be used to simulate a slow network. This is useful for testing timeouts and interactive testing. ### Java ```java MockResponse response = new MockResponse.Builder() .throttleBody(1024, 1, TimeUnit.SECONDS) .build();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 19 13:40:52 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java
assertTrue(outputStream instanceof ByteArrayOutputStream); } public void test_getXContentBuilderOutputStream_ioException() { XContentBuilderCallback callback = (builder, params) -> { // Simulate IOException by creating invalid state throw new IOException("Test exception"); }; OutputStream outputStream = SearchEngineUtil.getXContentBuilderOutputStream(callback, XContentType.JSON);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 13.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java
CharMappingItem item = new CharMappingItem(1L, new String[] { "temp" }, "output") { @Override public String getInputsValue() { // Simulate null inputs scenario if (getInputs() == null) { return super.getInputsValue(); } return super.getInputsValue(); } };
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/entity/SearchRenderDataTest.java
assertTrue(populatedString.contains("queryTime=500")); assertTrue(populatedString.contains("requestedTime=1000000")); } public void test_complexScenario() { // Simulate a typical search result scenario // Page 2 of search results with 10 items per page searchRenderData.setPageSize(10); searchRenderData.setCurrentPageNumber(2);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 23.3K bytes - Viewed (0)