Skip to content

Commit 103f204

Browse files
author
Tibor Digana
committed
Fix usage of actual/expected in #assertEquals
1 parent 1b7312e commit 103f204

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/org/junit/rules/Stopwatch.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
* public void performanceTest() throws InterruptedException {
6565
* long delta= 30;
6666
* Thread.sleep(300L);
67-
* assertEquals(stopwatch.runtime(MILLISECONDS), 300d, delta);
67+
* assertEquals(300d, stopwatch.runtime(MILLISECONDS), delta);
6868
* Thread.sleep(500L);
69-
* assertEquals(stopwatch.runtime(MILLISECONDS), 800d, delta);
69+
* assertEquals(800d, stopwatch.runtime(MILLISECONDS), delta);
7070
* }
7171
* </pre>
7272
*

src/test/java/org/junit/tests/experimental/rules/StopwatchTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ public static class DurationTest extends AbstractStopwatchTest {
105105
@Test
106106
public void duration() throws InterruptedException {
107107
Thread.sleep(300L);
108-
assertEquals(fStopwatch.runtime(MILLISECONDS), 300d, 100d);
108+
assertEquals(300d, fStopwatch.runtime(MILLISECONDS), 100d);
109109
Thread.sleep(500L);
110-
assertEquals(fStopwatch.runtime(MILLISECONDS), 800d, 250d);
110+
assertEquals(800d, fStopwatch.runtime(MILLISECONDS), 250d);
111111
}
112112
}
113113

0 commit comments

Comments
 (0)