use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class HostSpecifierTest method testNulls.
public void testNulls() throws Exception {
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 hceylan.
the class InetAddressesTest method testNulls.
public void testNulls() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(InetAddresses.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class InternetDomainNameTest method testNulls.
@GwtIncompatible("NullPointerTester")
public void testNulls() throws Exception {
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 hceylan.
the class IntMathTest method testNullPointers.
@GwtIncompatible("NullPointerTester")
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(int.class, 1);
tester.setDefault(RoundingMode.class, FLOOR);
tester.testAllPublicStaticMethods(IntMath.class);
}
use of com.google.common.testing.NullPointerTester in project guava by hceylan.
the class MediaTypeTest method testNullPointer.
@GwtIncompatible("com.google.common.testing.NullPointerTester")
public void testNullPointer() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(MediaType.class);
tester.testAllPublicStaticMethods(MediaType.class);
tester.testAllPublicInstanceMethods(MediaType.parse("text/plain"));
}
Aggregations