- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 66 for testAllPublicInstanceMethods (0.12 sec)
-
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
// null parameters test public void testNullParameters() throws Exception { NullPointerTester tester = new NullPointerTester(); CacheLoader<Object, Object> loader = identityLoader(); tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader)); } // stats tests public void testStats() { CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1).maximumSize(2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 12.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerTest.java
@NullUnmarked public class MapMakerTest extends TestCase { @GwtIncompatible // NullPointerTester public void testNullParameters() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicInstanceMethods(new MapMaker()); } @GwtIncompatible // threads static final class DelayingIdentityLoader<T> implements Function<T, T> { private final CountDownLatch delayLatch;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java
out.write(buf); assertEquals(expectedHash, out.hash()); } public void testChecksForNull() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicInstanceMethods( new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream())); tester.testAllPublicStaticMethods(HashingOutputStream.class); tester.testAllPublicConstructors(HashingOutputStream.class); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/FakeTickerTest.java
@NullUnmarked public class FakeTickerTest extends TestCase { @GwtIncompatible // NullPointerTester public void testNullPointerExceptions() { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicInstanceMethods(new FakeTicker()); } @GwtIncompatible // java.time.Duration public void testAdvance() { FakeTicker ticker = new FakeTicker(); assertEquals(0, ticker.read());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
} fail(); } public void testInterfaceDefaultMethod() { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicInstanceMethods(InterfaceDefaultMethodChecksNull.create()); try { tester.testAllPublicInstanceMethods(InterfaceDefaultMethodFailsToCheckNull.create()); } catch (AssertionError expected) { return; } fail(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java
.testForwarding(String.class, Functions.<String>identity())); } public void testNulls() { new NullPointerTester() .setDefault(Class.class, Runnable.class) .testAllPublicInstanceMethods(new ForwardingWrapperTester()); } private <T> void assertFailure( Class<T> interfaceType, Function<T, ? extends T> wrapperFunction, String... expectedMessages) { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 15.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharMatcherTest.java
public void testStaticNullPointers() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicStaticMethods(CharMatcher.class); tester.testAllPublicInstanceMethods(CharMatcher.any()); tester.testAllPublicInstanceMethods(CharMatcher.anyOf("abc")); } private static final CharMatcher WHATEVER = new CharMatcher() { @Override public boolean matches(char c) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
list.add(THROWING_RUNNABLE, directExecutor()); list.execute(); list.add(THROWING_RUNNABLE, directExecutor()); } public void testNulls() { new NullPointerTester().testAllPublicInstanceMethods(new ExecutionList()); } private static final Runnable THROWING_RUNNABLE = new Runnable() { @Override public void run() { throw new RuntimeException();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 4.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
tester.testAllPublicStaticMethods(ImmutableMap.class); tester.testAllPublicInstanceMethods(new ImmutableMap.Builder<Object, Object>()); tester.testAllPublicInstanceMethods(ImmutableMap.of()); tester.testAllPublicInstanceMethods(ImmutableMap.of("one", 1)); tester.testAllPublicInstanceMethods(ImmutableMap.of("one", 1, "two", 2, "three", 3)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36.7K bytes - Viewed (0)