use of com.google.common.testing.NullPointerTester in project guava by google.
the class TypeTokenTest method testNulls.
public <T> void testNulls() {
new NullPointerTester().testAllPublicStaticMethods(TypeToken.class);
new NullPointerTester().setDefault(TypeParameter.class, new TypeParameter<T>() {
}).testAllPublicInstanceMethods(TypeToken.of(String.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);
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class IteratorsTest method testNullPointerExceptions.
// NullPointerTester
@GwtIncompatible
public void testNullPointerExceptions() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Iterators.class);
}
Aggregations