use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class LongsTest method testNulls.
@GwtIncompatible("NullPointerTester")
public void testNulls() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(long[].class, new long[0]);
tester.testAllPublicStaticMethods(Longs.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class CharMatcherTest method doTestNull.
@GwtIncompatible("NullPointerTester")
private void doTestNull(CharMatcher matcher) throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicInstanceMethods(matcher);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class StringsTest method testNullPointers.
@GwtIncompatible("NullPointerTester")
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Strings.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class ObjectsTest method testNullPointers.
@GwtIncompatible("NullPointerTester")
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(Objects.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class OptionalTest method testNullPointers.
@GwtIncompatible("NullPointerTester")
public void testNullPointers() throws Exception {
NullPointerTester npTester = new NullPointerTester();
npTester.testAllPublicConstructors(Optional.class);
npTester.testAllPublicStaticMethods(Optional.class);
npTester.testAllPublicInstanceMethods(Optional.absent());
npTester.testAllPublicInstanceMethods(Optional.of("training"));
}
Aggregations