use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class MinMaxPriorityQueueTest method testNullPointers.
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(MinMaxPriorityQueue.class);
tester.testAllPublicStaticMethods(MinMaxPriorityQueue.class);
tester.testAllPublicInstanceMethods(MinMaxPriorityQueue.<String>create());
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class MultimapsTest method testNullPointers.
@GwtIncompatible("NullPointerTester")
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(Multimap.class, ImmutableMultimap.of());
tester.setDefault(ListMultimap.class, ImmutableListMultimap.of());
tester.setDefault(EntryTransformer.class, ALWAYS_NULL);
tester.testAllPublicStaticMethods(Multimaps.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class MultisetsTest method testNullPointers.
@GwtIncompatible("NullPointerTester")
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(Multiset.class, ImmutableMultiset.of());
tester.testAllPublicStaticMethods(Multisets.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class HashingTest method testNullPointers.
public void testNullPointers() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Hashing.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class BigIntegerMathTest method testNullPointers.
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(BigInteger.class, ONE);
tester.setDefault(RoundingMode.class, FLOOR);
tester.setDefault(int.class, 1);
tester.setDefault(long.class, 1L);
tester.testAllPublicStaticMethods(BigIntegerMath.class);
}
Aggregations