- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 120 for NullPointerTester (0.08 seconds)
-
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
assertThrows( IllegalArgumentException.class, () -> DoubleMath.mean(ImmutableList.<Long>of().iterator())); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNullPointers() { NullPointerTester tester = new NullPointerTester(); tester.setDefault(double.class, 3.0); tester.testAllPublicStaticMethods(DoubleMath.class); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 27.3K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/anotherpackage/SomeClassThatDoesNotUseNullable.java
* limitations under the License. */ package com.google.common.testing.anotherpackage; /** Does not check null, but should not matter since it's in a different package. */ @SuppressWarnings("unused") // For use by NullPointerTester public class SomeClassThatDoesNotUseNullable { void packagePrivateButDoesNotCheckNull(String s) {} protected void protectedButDoesNotCheckNull(String s) {}
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Apr 21 02:27:51 GMT 2017 - 1.1K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Platform.java
return expectedClass.isInstance(t); } static void restoreInterruptIfIsInterruptedException(Throwable t) { checkNotNull(t); // to satisfy NullPointerTester if (t instanceof InterruptedException) { currentThread().interrupt(); } } static void interruptCurrentThread() { Thread.currentThread().interrupt(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.1K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/Platform.java
return expectedClass.isInstance(t); } static void restoreInterruptIfIsInterruptedException(Throwable t) { checkNotNull(t); // to satisfy NullPointerTester if (t instanceof InterruptedException) { currentThread().interrupt(); } } static void interruptCurrentThread() { Thread.currentThread().interrupt(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
import static org.junit.Assert.assertThrows; import com.google.common.collect.ImmutableClassToInstanceMap; import com.google.common.collect.ImmutableSet; import com.google.common.testing.NullPointerTester; import com.google.common.testing.NullPointerTester.Visibility; import com.google.common.util.concurrent.RateLimiter.SleepingStopwatch; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.List;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 21.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
import static org.junit.Assert.assertThrows; import com.google.common.collect.ImmutableClassToInstanceMap; import com.google.common.collect.ImmutableSet; import com.google.common.testing.NullPointerTester; import com.google.common.testing.NullPointerTester.Visibility; import com.google.common.util.concurrent.RateLimiter.SleepingStopwatch; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.List;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 21.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
.put("HmacSHA512", SHA512_KEY, Hashing.hmacSha512(SHA512_KEY)) .buildOrThrow(); public void testNulls() { NullPointerTester tester = new NullPointerTester().setDefault(String.class, "HmacMD5").setDefault(Key.class, MD5_KEY); tester.testAllPublicConstructors(MacHashFunction.class);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 27 16:19:35 GMT 2024 - 13.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThat(cache.size() + removalListener.size()).isEqualTo(computeCount.get()); } @GwtIncompatible // NullPointerTester public void testNullParameters() throws Exception { NullPointerTester tester = new NullPointerTester(); CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder(); tester.testAllPublicInstanceMethods(builder); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 25.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
testRotate(new byte[] {0, 1, 2, 3, 4, 5, 6}, 3, 3, 7, new byte[] {0, 1, 2, 4, 5, 6, 3}); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNulls() { new NullPointerTester().testAllPublicStaticMethods(Bytes.class); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
assertThrows(IllegalArgumentException.class, () -> builder.setCount("a", -2)); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNullPointers() { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicStaticMethods(ImmutableMultiset.class); } @J2ktIncompatible @GwtIncompatible // SerializableTester
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.8K bytes - Click Count (0)