Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 150 for simulate (0.54 sec)

  1. 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)
  2. 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)
  3. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(greater + ".compareTo(" + t + ')', greater.compareTo(t) > 0);
            assertFalse(greater.equals(t));
          }
        }
      }
    
      /**
       * Returns a collection that simulates concurrent modification by having its size method return
       * incorrect values. This is useful for testing methods that must treat the return value from
       * size() as a hint only.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ComparisonChainTest.java

              .add("anEnum", anEnum)
              .toString();
        }
      }
    
      /** Validates that the Comparator equivalent we document is correct. */
      @J2ktIncompatible // TODO b/315311435 - J2kt cannot emulate Comparator<C>.<U>thenComparing()
      public void testComparatorEquivalent() {
        Comparator<Foo> comparatorUsingComparisonChain =
            (a, b) ->
                ComparisonChain.start()
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:05:13 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

                while (handle.isActive()) {
                    try {
                        // Note: Actual SMB2 Change Notify implementation would go here
                        // For now, this is a placeholder that simulates monitoring
    
                        // In a real implementation, we would:
                        // 1. Send SMB2 Change Notify request
                        // 2. Wait for response
                        // 3. Process changes
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K 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. android/guava/src/com/google/common/io/Closer.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is
     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
     * >try-with-resources</a> statement in JDK6-compatible code. Code using this should be
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.34.md

      ensuring that any pods created at v1.32 with matchLabelKeys are either removed or already scheduled by the time you reach v1.34.
      
      If you maintain controllers that previously relied on matchLabelKeys (for instance, to simulate scheduling), 
      you likely no longer need to handle matchLabelKeys directly. Instead, you can just rely on the labelSelector field going forward.
      
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Wed Dec 10 01:13:50 UTC 2025
    - 333.3K bytes
    - Viewed (2)
  9. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        // ensure that if weird things happen during construction then we get exceptions.
        NoOpService service1 = new NoOpService();
        // This service will start service1 when addListener is called.  This simulates service1 being
        // started asynchronously.
        Service service2 =
            new Service() {
              final NoOpService delegate = new NoOpService();
    
              @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 17:49:12 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(greater + ".compareTo(" + t + ')', greater.compareTo(t) > 0);
            assertFalse(greater.equals(t));
          }
        }
      }
    
      /**
       * Returns a collection that simulates concurrent modification by having its size method return
       * incorrect values. This is useful for testing methods that must treat the return value from
       * size() as a hint only.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 17.2K bytes
    - Viewed (0)
Back to top