Search in sources :

Example 16 with NullPointerTester

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"));
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester)

Example 17 with NullPointerTester

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);
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester)

Example 18 with NullPointerTester

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"));
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester) GwtIncompatible(com.google.common.annotations.GwtIncompatible)

Example 19 with NullPointerTester

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());
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester) GwtIncompatible(com.google.common.annotations.GwtIncompatible)

Example 20 with NullPointerTester

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);
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester) GwtIncompatible(com.google.common.annotations.GwtIncompatible)

Aggregations

NullPointerTester (com.google.common.testing.NullPointerTester)165 GwtIncompatible (com.google.common.annotations.GwtIncompatible)100 Test (org.junit.Test)20 UnhashableObject (com.google.common.collect.testing.UnhashableObject)2 BoundedContext (io.spine.server.BoundedContext)2 FileSystem (java.nio.file.FileSystem)2 Sets.newEnumSet (com.google.common.collect.Sets.newEnumSet)1 Sets.newHashSet (com.google.common.collect.Sets.newHashSet)1 Sets.powerSet (com.google.common.collect.Sets.powerSet)1 AnEnum (com.google.common.collect.testing.AnEnum)1 SafeTreeSet (com.google.common.collect.testing.SafeTreeSet)1 ExecutionList (com.google.common.util.concurrent.ExecutionList)1 BuildConfiguration (com.google.devtools.build.lib.analysis.config.BuildConfiguration)1 FieldDescriptor (com.google.protobuf.Descriptors.FieldDescriptor)1 StringValue (com.google.protobuf.StringValue)1 AggregatePart.getConstructor (io.spine.server.aggregate.AggregatePart.getConstructor)1 MessageWithStringValue (io.spine.test.messages.MessageWithStringValue)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 IOException (java.io.IOException)1 Constructor (java.lang.reflect.Constructor)1