Java 类com.google.common.util.concurrent.RateLimiter.SleepingStopwatch 实例源码

项目:guava-mock    文件:PackageSanityTests.java   
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);
}
项目:guava-mock    文件:RateLimiterTest.java   
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);
}
项目:googles-monorepo-demo    文件:PackageSanityTests.java   
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);
}
项目:googles-monorepo-demo    文件:RateLimiterTest.java   
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);
}
项目:guava-libraries    文件:RateLimiterTest.java   
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);
}
项目:guava    文件:RateLimiterTest.java   
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);
}
项目:guava    文件:RateLimiterTest.java   
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);
}
项目:guava-libraries    文件:PackageSanityTests.java   
public PackageSanityTests() {
  setDefault(RateLimiter.class, RateLimiter.create(1.0));
  setDefault(SleepingStopwatch.class, NO_OP_STOPWATCH);
  setDefault(long.class, 0L);
}