Home
last modified time | relevance | path

Searched refs:expectedNanos (Results 1 – 1 of 1) sorted by relevance

/external/mockito/src/test/java/org/mockitoutil/
DStopwatch.java47 long expectedNanos = unit.toNanos(expected); in assertElapsedTimeIsMoreThan() local
49 if (elapsedNanos <= expectedNanos) in assertElapsedTimeIsMoreThan()
50 … fail("Expected that more than %dms elapsed! But was: %dms", expectedNanos, elapsedNanos); in assertElapsedTimeIsMoreThan()
55 long expectedNanos = unit.toNanos(expected); in assertElapsedTimeIsLessThan() local
57 if (elapsedNanos >= expectedNanos) in assertElapsedTimeIsLessThan()
58 … fail("Expected that less than %dms elapsed! But was: %dms", expectedNanos, elapsedNanos); in assertElapsedTimeIsLessThan()
67 private static void fail(String message, long expectedNanos, long elapsedNanos) { in fail() argument
68 …throw new MockitoAssertionError(format(message, NANOSECONDS.toMillis(expectedNanos), NANOSECONDS.t… in fail()