use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class ReflectionTest method testNullPointers.
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(InvocationHandler.class, X_RETURNER);
tester.setDefault(Type[].class, new Type[] { Map.class });
tester.setDefault(Type.class, String.class);
tester.testAllPublicStaticMethods(Reflection.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class SignedBytesTest method testNulls.
@GwtIncompatible("NullPointerTester")
public void testNulls() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(byte[].class, new byte[0]);
tester.testAllPublicStaticMethods(SignedBytes.class);
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class ListsTest method testNullPointerExceptions.
// NullPointerTester
@GwtIncompatible
public void testNullPointerExceptions() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Lists.class);
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class MapMakerInternalMapTest method testNullParameters.
public void testNullParameters() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicInstanceMethods(makeMap(createMapMaker()));
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class IterablesTest method testNullPointerExceptions.
// NullPointerTester
@GwtIncompatible
public void testNullPointerExceptions() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Iterables.class);
}
Aggregations