use of com.google.common.testing.NullPointerTester in project guava by google.
the class HostSpecifierTest method testNulls.
public void testNulls() {
final NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(HostSpecifier.class);
tester.testAllPublicInstanceMethods(HostSpecifier.fromValid("google.com"));
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class InetAddressesTest method testNulls.
public void testNulls() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(InetAddresses.class);
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class InternetDomainNameTest method testNulls.
// NullPointerTester
@GwtIncompatible
public void testNulls() {
final NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(InternetDomainName.class);
tester.testAllPublicInstanceMethods(InternetDomainName.from("google.com"));
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class IntsTest method testStringConverter_nullPointerTester.
// NullPointerTester
@GwtIncompatible
public void testStringConverter_nullPointerTester() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicInstanceMethods(Ints.stringConverter());
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class DoubleMathTest method testNullPointers.
// NullPointerTester
@GwtIncompatible
public void testNullPointers() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(double.class, 3.0);
tester.testAllPublicStaticMethods(DoubleMath.class);
}
Aggregations