Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for simulate (0.08 sec)

  1. 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)
  2. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

            @Override
            public Object evaluate(String template, Map<String, Object> paramMap) {
                if ("error".equals(template)) {
                    // Simulate error by returning null
                    return null;
                }
                return template;
            }
        }
    
        // Test helper class
        private static class TestUser {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/test/java/org/codelibs/fess/job/PythonJobTest.java

                this.output = output;
            }
    
            @Override
            public void start() {
                // Override start to do nothing in test - simulate immediate completion
            }
    
            @Override
            public void run() {
                // Override run to do nothing in test
            }
    
            @Override
            public String getOutput() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            final String tempPath = "/tmp/test.tmp";
            final String outputPath = "/tmp/output.jpg";
    
            // Simulate the variable replacement logic from the source code
            final List<String> processedCommands = new ArrayList<>();
            for (final String command : commands) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top