public PackageSanityTests() { setDefault(AbstractFuture.class, SettableFuture.create()); setDefault(Class.class, IOException.class); setDefault(RateLimiter.class, RateLimiter.create(1.0)); setDefault(SleepingStopwatch.class, NO_OP_STOPWATCH); setDefault(long.class, 0L); }
public void testNulls() { NullPointerTester tester = new NullPointerTester() .setDefault(SleepingStopwatch.class, stopwatch) .setDefault(int.class, 1) .setDefault(double.class, 1.0d); tester.testStaticMethods(RateLimiter.class, Visibility.PACKAGE); tester.testInstanceMethods(RateLimiter.create(stopwatch, 5.0), Visibility.PACKAGE); }
public void testNulls() { NullPointerTester tester = new NullPointerTester() .setDefault(SleepingStopwatch.class, stopwatch) .setDefault(int.class, 1) .setDefault(double.class, 1.0d); tester.testStaticMethods(RateLimiter.class, Visibility.PACKAGE); tester.testInstanceMethods(RateLimiter.create(5.0, stopwatch), Visibility.PACKAGE); }
public PackageSanityTests() { setDefault(RateLimiter.class, RateLimiter.create(1.0)); setDefault(SleepingStopwatch.class, NO_OP_STOPWATCH); setDefault(long.class, 0L); }