use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class PreconditionsTest method testNullPointers.
@GwtIncompatible("NullPointerTester")
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Preconditions.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class PredicatesTest method testContainsPattern_nulls.
@GwtIncompatible("NullPointerTester")
public void testContainsPattern_nulls() throws Exception {
NullPointerTester tester = new NullPointerTester();
Predicate<CharSequence> isWooString = Predicates.containsPattern("Woo");
tester.testAllPublicInstanceMethods(isWooString);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class PredicatesTest method testNullPointerExceptions.
@GwtIncompatible("NullPointerTester")
public void testNullPointerExceptions() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Predicates.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class EnumsTest method testNullPointerExceptions.
@GwtIncompatible("NullPointerTester")
public void testNullPointerExceptions() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Enums.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class LongMathTest method testNullPointers.
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(RoundingMode.class, FLOOR);
tester.setDefault(int.class, 1);
tester.setDefault(long.class, 1L);
tester.testAllPublicStaticMethods(LongMath.class);
}
Aggregations