MCPcopy Create free account
hub / github.com/oshi/oshi / testSleep

Method testSleep

oshi-core/src/test/java/oshi/util/UtilTest.java:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35class UtilTest {
36
37 @Test
38 void testSleep() {
39 // Windows counters may be up to 1/64 second (16ms) off
40 long now = System.nanoTime();
41 Util.sleep(100);
42 assertThat(System.nanoTime() - now, is(greaterThan(84_375_000L)));
43 }
44
45 @Test
46 void testWildcardMatch() {

Callers

nothing calls this directly

Calls 2

sleepMethod · 0.95
assertThatMethod · 0.80

Tested by

no test coverage detected