Skip to content

Commit b2172af

Browse files
committed
Migrate MocksTest in org.eclipse.ui.tests.harness to JUnit 5
The bundle exports JUnit 4 *Rule classes still consumed by downstream test bundles, so the org.junit dependency stays for now. Only the internal MocksTest class is converted to Jupiter.
1 parent db07fcb commit b2172af

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/tests

tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/tests/MocksTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
package org.eclipse.ui.tests.harness.tests;
1818

19-
import static org.junit.Assert.assertEquals;
20-
import static org.junit.Assert.fail;
19+
import static org.junit.jupiter.api.Assertions.assertEquals;
20+
import static org.junit.jupiter.api.Assertions.fail;
2121

2222
import java.lang.reflect.UndeclaredThrowableException;
2323

2424
import org.eclipse.ui.tests.harness.util.Mocks;
25-
import org.junit.Before;
26-
import org.junit.Test;
25+
import org.junit.jupiter.api.BeforeEach;
26+
import org.junit.jupiter.api.Test;
2727

2828
/**
2929
* Tests for the Mocks class.
@@ -42,7 +42,7 @@ public class MocksTest {
4242
private static float unitializedFloat;
4343
private static double unitializedDouble;
4444

45-
@Before
45+
@BeforeEach
4646
public void setUp() {
4747
primitiveMock = (IPrimitive) Mocks.createRelaxedMock(IPrimitive.class);
4848
}

0 commit comments

Comments
 (0)