- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 426 for make (0.12 sec)
-
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
// Wait for the listeners to be called, don't rely on the same-thread exec. listenerLatch.await(5, TimeUnit.SECONDS); assertTrue(task.isDone()); assertTrue(task.isCancelled()); // Make sure we didn't run anything. assertEquals(1, runLatch.getCount()); } public void testListenerCalledOnCancelFromRunning() throws Exception { exec.execute(task); runLatch.await();
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java
import java.lang.reflect.Method; import java.util.Arrays; import java.util.Iterator; import java.util.List; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Ignore; /** * Tester to make sure the {@code iterator().remove()} implementation of {@code Multiset} works when * there are multiple occurrences of elements. * * @author Louis Wasserman */ @GwtCompatible(emulated = true)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 4.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
* </ul> * * <p><b>Important note:</b> the primary goal of this benchmark is to ensure that varying {@code * whereToDiffer} produces no observable change in performance. We want to make sure that the array * equals implementation is *not* short-circuiting to prevent timing-based attacks. Being fast is * only a secondary goal. * * @author Kurt Alfred Kluever */ public class HashCodeBenchmark {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
* </ul> * * <p><b>Important note:</b> the primary goal of this benchmark is to ensure that varying {@code * whereToDiffer} produces no observable change in performance. We want to make sure that the array * equals implementation is *not* short-circuiting to prevent timing-based attacks. Being fast is * only a secondary goal. * * @author Kurt Alfred Kluever */ public class HashCodeBenchmark {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
// we allow one second worth of work to go in a burst (i.e. take less than a second) assertTrue(burst <= 1000); long afterBurst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random()); // but work beyond that must take at least one second assertTrue(afterBurst >= 1000); } } /**
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CloseablesTest.java
// make sure that no exception is thrown regardless of value of // 'swallowException' when the mock does not throw an exception. setupCloseable(false); doClose(mockCloseable, false, false); setupCloseable(false); doClose(mockCloseable, true, false); } public void testClose_closeableWithEatenException() throws IOException {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java
* * We'd just use PackageSanityTests directly, saving us from needing this separate type, but we're * currently skipping MediumTests on Android, and we skip them by not making them present at * runtime at all. I could just make _this_ test a MediumTest, but then it wouldn't run on * Android.... The right long-term fix is probably to get MediumTests running under Android by * default and then suppress them strategically as needed. */
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Jun 11 21:37:55 GMT 2019 - 5.3K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java
* * We'd just use PackageSanityTests directly, saving us from needing this separate type, but we're * currently skipping MediumTests on Android, and we skip them by not making them present at * runtime at all. I could just make _this_ test a MediumTest, but then it wouldn't run on * Android.... The right long-term fix is probably to get MediumTests running under Android by * default and then suppress them strategically as needed. */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 11 21:37:55 GMT 2019 - 5.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSequenceReader.java
* such as: * * - Make checkOpen return the non-null `seq`. Then callers can assign that to a local variable or * even back to `this.seq`. However, that may suggest that we're defending against concurrent * mutation, which is not an actual risk because we use `synchronized`. * - Make `remaining` require a non-null `seq` argument. But this is a bit weird because the
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 28 20:13:02 GMT 2023 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
} } out.close(); // Check that source returns the right data assertTrue(Arrays.equals(data, source.read())); // Make sure that reset deleted the file out.reset(); if (file != null) { assertFalse(file.exists()); } } public void testThreshold_resetOnFinalize() throws Exception {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 5.5K bytes - Viewed (0)