Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReset_new (0.24 sec)

  1. android/guava-tests/test/com/google/common/base/StopwatchTest.java

      public void testStop_alreadyStopped() {
        stopwatch.start();
        stopwatch.stop();
        assertThrows(IllegalStateException.class, stopwatch::stop);
        assertFalse(stopwatch.isRunning());
      }
    
      public void testReset_new() {
        ticker.advance(1);
        stopwatch.reset();
        assertFalse(stopwatch.isRunning());
        ticker.advance(2);
        assertEquals(0, stopwatch.elapsed(NANOSECONDS));
        stopwatch.start();
        ticker.advance(3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/StopwatchTest.java

      public void testStop_alreadyStopped() {
        stopwatch.start();
        stopwatch.stop();
        assertThrows(IllegalStateException.class, stopwatch::stop);
        assertFalse(stopwatch.isRunning());
      }
    
      public void testReset_new() {
        ticker.advance(1);
        stopwatch.reset();
        assertFalse(stopwatch.isRunning());
        ticker.advance(2);
        assertEquals(0, stopwatch.elapsed(NANOSECONDS));
        stopwatch.start();
        ticker.advance(3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top