Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testAutoIncrementStep_duration (0.17 sec)

  1. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(6000000000L, ticker.read());
      }
    
      @GwtIncompatible // java.time.Duration
      @IgnoreJRERequirement // TODO: b/288085449 - Remove this once we use library-desugaring scents.
      public void testAutoIncrementStep_duration() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(Duration.ofMillis(1));
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top