Search in sources :

Example 56 with NullPointerTester

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

Example 57 with NullPointerTester

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

Example 58 with NullPointerTester

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

Example 59 with NullPointerTester

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

Example 60 with NullPointerTester

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

Aggregations

NullPointerTester (com.google.common.testing.NullPointerTester)171 GwtIncompatible (com.google.common.annotations.GwtIncompatible)100 Test (org.junit.Test)26 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 TestActorRequestFactory (io.spine.client.TestActorRequestFactory)1 Command (io.spine.core.Command)1 EventEnvelope (io.spine.core.EventEnvelope)1 AnAggregateRoot (io.spine.server.aggregate.given.AggregateRootTestEnv.AnAggregateRoot)1 TestEventFactory (io.spine.server.command.TestEventFactory)1