- Sort Score
- Result 10 results
- Languages All
Results 2481 - 2490 of 3,823 for code (0.03 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java
import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.Map.Entry; import org.junit.Ignore; /** * A generic JUnit test which tests {@code remove} operations on a map. Can't be invoked directly; * please see {@link com.google.common.collect.testing.MapTestSuiteBuilder}. * * @author George van den Driessche * @author Chris Povirk */ @GwtCompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java
import com.google.common.collect.testing.features.CollectionSize; import com.google.common.collect.testing.features.MapFeature; import java.util.Collection; import org.junit.Ignore; /** * Tests for {@code Multimap.asMap().get(Object)}. * * @author Louis Wasserman */ @GwtCompatible @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java
import java.util.EnumSet; import java.util.List; import java.util.Map.Entry; import java.util.Set; import junit.framework.TestSuite; /** * Creates, based on your criteria, a JUnit test suite that exhaustively tests a {@code SetMultimap} * implementation. * * @author Louis Wasserman */ @GwtIncompatible public class SetMultimapTestSuiteBuilder<K, V> extends MultimapTestSuiteBuilder<K, V, SetMultimap<K, V>> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ReflectionFreeAssertThrows.java
import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import junit.framework.AssertionFailedError; import org.checkerframework.checker.nullness.qual.Nullable; /** Replacements for JUnit's {@code assertThrows} that work under GWT/J2CL. */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault final class ReflectionFreeAssertThrows { interface ThrowingRunnable { void run() throws Throwable; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 16:27:30 UTC 2024 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashingTest.java
*/ package com.google.common.collect; import static com.google.common.collect.Hashing.smear; import com.google.common.annotations.GwtCompatible; import junit.framework.TestCase; /** Tests for {@code Hashing}. */ @GwtCompatible @ElementTypesAreNonnullByDefault public class HashingTest extends TestCase { public void testSmear() { assertEquals(1459320713, smear(754102528));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
dummy ^= JOINER_ON_CHARACTER.join(components).length(); } return dummy; } /** * Mimics what the {@link Joiner} class does internally when no extra options like ignoring {@code * null} values are used. */ @Benchmark int joinerInlined(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { StringBuilder sb = new StringBuilder();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java
import com.google.common.collect.testing.features.MapFeature; import java.util.concurrent.ConcurrentMap; import org.junit.Ignore; /** * A generic JUnit test which tests {@code replace(K, V, V)} operations on a concurrent map. Can't * be invoked directly; please see {@link * com.google.common.collect.testing.ConcurrentMapTestSuiteBuilder}. * * @author Louis Wasserman */ @GwtCompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 5.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java
import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import junit.framework.AssertionFailedError; import org.checkerframework.checker.nullness.qual.Nullable; /** Replacements for JUnit's {@code assertThrows} that work under GWT/J2CL. */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault final class ReflectionFreeAssertThrows { interface ThrowingRunnable { void run() throws Throwable; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 6.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java
* @author Chris Nokleberg * @since 1.0 */ @GwtIncompatible @J2ktIncompatible @ElementTypesAreNonnullByDefault public abstract class AbstractIdleService implements Service { /* Thread names will look like {@code "MyService STARTING"}. */ private final Supplier<String> threadNameSupplier = new ThreadNameSupplier(); @WeakOuter private final class ThreadNameSupplier implements Supplier<String> { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 13:59:28 UTC 2023 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/AbstractIteratorTest.java
import com.google.common.testing.GcFinalization; import java.lang.ref.WeakReference; import java.util.Iterator; import java.util.NoSuchElementException; import junit.framework.TestCase; /** * Unit test for {@code AbstractIterator}. * * @author Kevin Bourrillion */ @GwtCompatible(emulated = true) public class AbstractIteratorTest extends TestCase { public void testDefaultBehaviorOfNextAndHasNext() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 5.7K bytes - Viewed (0)