use of com.google.common.testing.NullPointerTester in project caffeine by ben-manes.
the class CacheBuilderTest method testNullParameters.
@GwtIncompatible("NullPointerTester")
public void testNullParameters() throws Exception {
NullPointerTester tester = new NullPointerTester();
Caffeine<Object, Object> builder = Caffeine.newBuilder();
tester.testAllPublicInstanceMethods(builder);
}
use of com.google.common.testing.NullPointerTester in project caffeine by ben-manes.
the class LocalLoadingCacheTest method testNullParameters.
// null parameters test
public void testNullParameters() throws Exception {
NullPointerTester tester = new NullPointerTester();
CacheLoader<Object, Object> loader = identityLoader();
tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
}
use of com.google.common.testing.NullPointerTester in project bazel by bazelbuild.
the class ZipFileDataTest method testNulls.
@Test
public void testNulls() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(ZipFileData.class);
tester.testAllPublicInstanceMethods(data);
}
use of com.google.common.testing.NullPointerTester in project bazel by bazelbuild.
the class ZipFileEntryTest method testNulls.
@Test
public void testNulls() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(ZipFileEntry.class);
tester.testAllPublicInstanceMethods(new ZipFileEntry("foo"));
}
use of com.google.common.testing.NullPointerTester in project bazel by bazelbuild.
the class ImmutableSortedKeyMapTest method nullPointers.
@Test
public void nullPointers() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(ImmutableSortedKeyMap.class);
tester.testAllPublicInstanceMethods(new ImmutableSortedKeyMap.Builder<String, Object>());
tester.testAllPublicInstanceMethods(ImmutableSortedKeyMap.<String, Integer>of());
tester.testAllPublicInstanceMethods(ImmutableSortedKeyMap.of("one", 1));
tester.testAllPublicInstanceMethods(ImmutableSortedKeyMap.of("one", 1, "two", 2));
}
Aggregations