Search in sources :

Example 26 with NullPointerTester

use of com.google.common.testing.NullPointerTester in project guava by google.

the class TypeTokenTest method testNulls.

public <T> void testNulls() {
    new NullPointerTester().testAllPublicStaticMethods(TypeToken.class);
    new NullPointerTester().setDefault(TypeParameter.class, new TypeParameter<T>() {
    }).testAllPublicInstanceMethods(TypeToken.of(String.class));
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester)

Example 27 with NullPointerTester

use of com.google.common.testing.NullPointerTester in project guava by google.

the class ListsTest method testNullPointerExceptions.

// NullPointerTester
@GwtIncompatible
public void testNullPointerExceptions() {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicStaticMethods(Lists.class);
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester) GwtIncompatible(com.google.common.annotations.GwtIncompatible)

Example 28 with NullPointerTester

use of com.google.common.testing.NullPointerTester in project guava by google.

the class MapMakerInternalMapTest method testNullParameters.

public void testNullParameters() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicInstanceMethods(makeMap(createMapMaker()));
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester)

Example 29 with NullPointerTester

use of com.google.common.testing.NullPointerTester in project guava by google.

the class IterablesTest method testNullPointerExceptions.

// NullPointerTester
@GwtIncompatible
public void testNullPointerExceptions() {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicStaticMethods(Iterables.class);
}
Also used : NullPointerTester(com.google.common.testing.NullPointerTester) GwtIncompatible(com.google.common.annotations.GwtIncompatible)

Example 30 with NullPointerTester

use of com.google.common.testing.NullPointerTester in project guava by google.

the class IteratorsTest method testNullPointerExceptions.

// NullPointerTester
@GwtIncompatible
public void testNullPointerExceptions() {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicStaticMethods(Iterators.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