Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 145 for simulate (0.59 sec)

  1. 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)
  2. 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)
  3. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                int originalValue = 150;
                NdrShort ndrShort1 = new NdrShort(originalValue);
    
                // Create separate mocks for encoding and decoding to simulate real buffer
                NdrBuffer encodeBuffer = mock(NdrBuffer.class);
                NdrBuffer decodeBuffer = mock(NdrBuffer.class);
                when(decodeBuffer.dec_ndr_short()).thenReturn(originalValue);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. 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)
  5. cmd/erasure-healing_test.go

    	disk := er.getDisks()[0]
    	fileInfoPreHeal, err := disk.ReadVersion(t.Context(), "", bucket, object, "", ReadOptions{ReadData: false, Healing: true})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Remove the object - to simulate the case where the disk was down when the object
    	// was created.
    	err = removeAll(pathJoin(disk.String(), bucket, object))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Checking abandoned parts should do nothing
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 48.5K bytes
    - Viewed (0)
  6. 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)
  7. src/test/java/jcifs/SmbTransportPoolTest.java

                // Given
                when(transportPool.getSmbTransport(any(), any(Address.class), anyInt(), anyBoolean())).thenReturn(transport);
    
                // When - simulate concurrent requests
                Thread thread1 = new Thread(() -> transportPool.getSmbTransport(context, address, DEFAULT_PORT, false));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            when(messageBlock.getCommand()).thenReturn(command);
            when(messageBlock.getDigest()).thenReturn(digest);
            when(messageBlock.getResponse()).thenReturn(response);
    
            // When - simulate a typical usage sequence
            messageBlock.setMid(mid);
            messageBlock.setCommand(command);
            messageBlock.setUid(uid);
            messageBlock.setSessionId(sessionId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

        }
    
        @Test
        @DisplayName("Happy path: iterates entries, fetchMore(), then closes with FindClose2")
        void iteratesAndFetchesMoreThenCloses() throws Exception {
            // Arrange: program send() to simulate first, next, next(NO_MORE_FILES)
            List<String[]> batches = new ArrayList<>();
            batches.add(new String[] { ".", "..", "a", "b" }); // first batch, dot entries filtered
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top