use of com.google.common.testing.NullPointerTester in project guava by google.
the class TreeTraverserTest method testNulls.
// NullPointerTester
@GwtIncompatible
public void testNulls() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicInstanceMethods(ADAPTER);
tester.testAllPublicInstanceMethods(BIN_ADAPTER);
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class MacHashFunctionTest method testNulls.
public void testNulls() {
NullPointerTester tester = new NullPointerTester().setDefault(String.class, "HmacMD5").setDefault(Key.class, MD5_KEY);
tester.testAllPublicConstructors(MacHashFunction.class);
tester.testAllPublicInstanceMethods(new MacHashFunction("HmacMD5", MD5_KEY, "toString"));
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class IntMathTest method testNullPointers.
// NullPointerTester
@GwtIncompatible
public void testNullPointers() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(int.class, 1);
tester.testAllPublicStaticMethods(IntMath.class);
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class LongMathTest method testNullPointers.
// NullPointerTester
@GwtIncompatible
public void testNullPointers() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(int.class, 1);
tester.setDefault(long.class, 1L);
tester.testAllPublicStaticMethods(LongMath.class);
}
use of com.google.common.testing.NullPointerTester in project guava by google.
the class MonitorTestCase method testNulls.
public void testNulls() {
// Inhibit IllegalMonitorStateException
monitor.enter();
new NullPointerTester().setDefault(TimeUnit.class, TimeUnit.SECONDS).setDefault(Monitor.Guard.class, new TestGuard(true)).testAllPublicInstanceMethods(monitor);
}
Aggregations