use of com.google.common.testing.NullPointerTester in project guava by google.
the class FunctionsTest method testNullPointerExceptions.
// NullPointerTester
@GwtIncompatible
public void testNullPointerExceptions() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Functions.class);
}
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 FluentIterableTest method testNullPointerExceptions.
// NullPointerTester
@GwtIncompatible
public void testNullPointerExceptions() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(FluentIterable.class);
}
use of com.google.common.testing.NullPointerTester in project guava by google.
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 guava by google.
the class EnumBiMapTest method testNulls.
// reflection
@GwtIncompatible
public void testNulls() {
new NullPointerTester().testAllPublicStaticMethods(EnumBiMap.class);
new NullPointerTester().testAllPublicInstanceMethods(EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CHILE)));
}
Aggregations