Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for isSimulated (0.1 sec)

  1. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        AtomicInteger existingZero = new AtomicInteger(0);
    
        // initial map.get()
        when(backingMap.get(KEY)).thenReturn(null);
        // since get returned null, try a putIfAbsent; that fails due to a simulated race
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existingZero);
        // since the putIfAbsent returned a zero, we'll try to replace...
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/ResponseDataUtilTest.java

                    return new InputStream() {
                        @Override
                        public int read() throws IOException {
                            throw new IOException("Simulated read error");
                        }
                    };
                }
    
                @Override
                public String getUrl() {
                    return "http://example.com/error";
                }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          },
          logger = logger,
        )
    
      /** Runs all tasks that are ready. Used by the test thread only. */
      fun runTasks() {
        advanceUntil(nanoTime)
      }
    
      /** Advance the simulated clock, then runs tasks that are ready. Used by the test thread only. */
      fun advanceUntil(newTime: Long) {
        taskRunner.assertLockNotHeld()
    
        taskRunner.withLock {
          check(currentTask == TestThreadSerialTask)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ExtractorResourceManagementTest.java

            final InputStream errorStream = new InputStream() {
                @Override
                public int read() throws IOException {
                    throw new IOException("Simulated read error");
                }
            };
    
            try {
                extractor.getText(errorStream, null);
                fail("Expected ExtractException");
            } catch (final ExtractException e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  5. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            when(mockFuture.actionGet(anyLong(), any(TimeUnit.class))).thenAnswer(invocation -> {
                int count = attemptCount.incrementAndGet();
                if (count <= 5) {
                    throw new RuntimeException("Simulated failure #" + count);
                }
                return "Success";
            });
    
            final String result = fesenClient.get(c -> mockFuture);
    
            assertEquals("Success", result);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                request.setOffset(1024L);
                request.setRemainingBytes(500);
                request.setWriteFlags(0x01);
    
                byte[] buffer = new byte[1024];
                int headerStart = 64; // Simulated header start
    
                // Execute
                int bytesWritten = request.writeBytesWireFormat(buffer, headerStart);
    
                // Verify structure
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerTest.java

                    new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.QUERY);
    
            // Both Document and Query (simulated by setting both frequencies)
            String[][] readings3 = new String[1][];
            readings3[0] = new String[] { "both" };
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 28.4K bytes
    - Viewed (0)
  8. lib/fips140/v1.0.0-c2097c7c.zip

    added to // fipstest.TestConditionals. func CAST(name string, f func() error) { if strings.ContainsAny(name, ",#=:") { panic("fips: invalid self-test name: " + name) } if !Enabled { return } err := f() if name == failfipscast { err = errors.New("simulated CAST failure") } if err != nil { fatal("FIPS 140-3 self-test failed: " + name + ": " + err.Error()) panic("unreachable") } if debug { println("FIPS 140-3 self-test passed:", name) } } // PCT runs the named Pairwise Consistency Test (if operated in...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Sep 25 19:53:19 UTC 2025
    - 642.7K bytes
    - Viewed (0)
  9. lib/fips140/v1.1.0-rc1.zip

    added to // fipstest.TestConditionals. func CAST(name string, f func() error) { if strings.ContainsAny(name, ",#=:") { panic("fips: invalid self-test name: " + name) } if !Enabled { return } err := f() if name == failfipscast { err = errors.New("simulated CAST failure") } if err != nil { fatal("FIPS 140-3 self-test failed: " + name + ": " + err.Error()) panic("unreachable") } if debug { println("FIPS 140-3 self-test passed:", name) } } // PCT runs the named Pairwise Consistency Test (if operated in...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
Back to top