File tree 2 files changed +4
-4
lines changed
main/java/org/junit/rules
test/java/org/junit/tests/experimental/rules
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 64
64
* public void performanceTest() throws InterruptedException {
65
65
* long delta= 30;
66
66
* Thread.sleep(300L);
67
- * assertEquals(stopwatch.runtime(MILLISECONDS), 300d , delta);
67
+ * assertEquals(300d, stopwatch.runtime(MILLISECONDS), delta);
68
68
* Thread.sleep(500L);
69
- * assertEquals(stopwatch.runtime(MILLISECONDS), 800d , delta);
69
+ * assertEquals(800d, stopwatch.runtime(MILLISECONDS), delta);
70
70
* }
71
71
* </pre>
72
72
*
Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ public static class DurationTest extends AbstractStopwatchTest {
105
105
@ Test
106
106
public void duration () throws InterruptedException {
107
107
Thread .sleep (300L );
108
- assertEquals (fStopwatch .runtime (MILLISECONDS ), 300d , 100d );
108
+ assertEquals (300d , fStopwatch .runtime (MILLISECONDS ), 100d );
109
109
Thread .sleep (500L );
110
- assertEquals (fStopwatch .runtime (MILLISECONDS ), 800d , 250d );
110
+ assertEquals (800d , fStopwatch .runtime (MILLISECONDS ), 250d );
111
111
}
112
112
}
113
113
You can’t perform that action at this time.
0 commit comments