- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for sleepThenReturnInput (0.16 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
SampleImpl target = new SampleImpl(DELAY_MS); Sample proxy = service.newProxy(target, Sample.class, ENOUGH_MS, MILLISECONDS); Stopwatch stopwatch = Stopwatch.createStarted(); String result = proxy.sleepThenReturnInput("x"); assertThat(result).isEqualTo("x"); assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(DELAY_MS, ENOUGH_MS)); assertThat(target.finished).isTrue(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 9.7K bytes - Click Count (0)