- Sort Score
- Num 10 results
- Language All
Results 381 - 390 of 6,187 for New (0.04 seconds)
-
guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
private final ExecutionList list = new ExecutionList(); public void testRunOnPopulatedList() throws Exception { Executor exec = newCachedThreadPool(); CountDownLatch countDownLatch = new CountDownLatch(3); list.add(new MockRunnable(countDownLatch), exec); list.add(new MockRunnable(countDownLatch), exec); list.add(new MockRunnable(countDownLatch), exec);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
private void weaklyReferenceQueue() { frq = new FinalizableReferenceQueue(); queueReference = new WeakReference<>(frq.queue); /* * Queue and clear a reference for good measure. We test later on that * the finalizer thread stopped, but we should test that it actually * started first. */ reference = new FinalizableWeakReference<Object>(new Object(), frq) { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Feb 27 21:20:19 GMT 2026 - 8.6K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
assertThat(ref.get()).isNull(); } private WeakReference<Object> createWeakReference() { return new WeakReference<>(new Object()); } public void testAwaitDone_finalizationPredicate() { WeakHashMap<Object, Object> map = new WeakHashMap<>(); map.put(new Object(), Boolean.TRUE); GcFinalization.awaitDone(map::isEmpty); assertTrue(map.isEmpty()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 8.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/MemoryUtilTest.java
assertEquals(0L, MemoryUtil.sizeOf(new String[] { null, null })); // Mixed content array assertEquals(84L, MemoryUtil.sizeOf(new Object[] { "test", 123, null })); // Nested arrays assertEquals(120L, MemoryUtil.sizeOf(new Object[] { new String[] { "test" }, new String[] { "test" } })); } @Test public void test_sizeOf_collectionVariations() { // Empty collection
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
public void testDelegateRejection() { AtomicInteger numCalls = new AtomicInteger(); AtomicBoolean reject = new AtomicBoolean(true); SequentialExecutor executor = new SequentialExecutor( new Executor() { @Override public void execute(Runnable r) { if (reject.get()) { throw new RejectedExecutionException(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 10.5K bytes - Click Count (0) -
docs/changelogs/changelog_2x.md
that can monitor, rewrite, and retry calls. The [interceptors doc][interceptors] is a full introduction to this new API. * New: APIs to iterate and selectively clear the response cache. * New: Support for SOCKS proxies. * New: Support for `TLS_FALLBACK_SCSV`. * New: Update HTTP/2 support to `h2-16` and `hpack-10`. * New: APIs to prevent retrying non-idempotent requests. * Fix: Drop NPN support. Going forward we support ALPN only.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 26.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
Configuration cfg = mock(Configuration.class); SmbComLockingAndX cmd = new SmbComLockingAndX(cfg); // arrays of size 1 so internal method will attempt to decode a range setField(cmd, "unlocks", new LockingAndXRange[] { new LockingAndXRange(false) }); setField(cmd, "locks", new LockingAndXRange[] { new LockingAndXRange(false) }); setField(cmd, "largeFile", false);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/PathMappingHelperTest.java
final List<PathMapping> pathMappingList = new ArrayList<PathMapping>(); final PathMapping pathMapping1 = new PathMapping(); pathMapping1.setRegex("file:///home/"); pathMapping1.setReplacement("http://localhost/"); pathMappingList.add(pathMapping1); final PathMapping pathMapping2 = new PathMapping(); pathMapping2.setRegex("http://localhost/");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 15.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
CountDownLatch isInterruptibleRegistered = new CountDownLatch(1); SettableFuture<String> taskResult = SettableFuture.create(); InterruptibleTask<String> task = new InterruptibleTask<String>() { @Override String runInterruptibly() throws Exception { BrokenChannel bc = new BrokenChannel(); bc.doBegin();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
CountDownLatch isInterruptibleRegistered = new CountDownLatch(1); SettableFuture<String> taskResult = SettableFuture.create(); InterruptibleTask<String> task = new InterruptibleTask<String>() { @Override String runInterruptibly() throws Exception { BrokenChannel bc = new BrokenChannel(); bc.doBegin();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.2K bytes - Click Count (0)