|
15 | 15 | *******************************************************************************/
|
16 | 16 | package org.eclipse.e4.ui.bindings.tests;
|
17 | 17 |
|
18 |
| -import static org.junit.Assert.assertEquals; |
19 |
| -import static org.junit.Assert.assertFalse; |
20 |
| -import static org.junit.Assert.assertNotEquals; |
21 |
| -import static org.junit.Assert.assertNotNull; |
22 |
| -import static org.junit.Assert.assertTrue; |
| 18 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 19 | +import static org.junit.jupiter.api.Assertions.assertFalse; |
| 20 | +import static org.junit.jupiter.api.Assertions.assertNotEquals; |
| 21 | +import static org.junit.jupiter.api.Assertions.assertNotNull; |
| 22 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
23 | 23 |
|
24 | 24 | import java.util.ArrayList;
|
25 | 25 | import java.util.Collection;
|
|
41 | 41 | import org.eclipse.jface.bindings.Binding;
|
42 | 42 | import org.eclipse.jface.bindings.keys.KeyBinding;
|
43 | 43 | import org.eclipse.jface.bindings.keys.KeySequence;
|
44 |
| -import org.junit.Before; |
45 |
| -import org.junit.Test; |
| 44 | +import org.junit.jupiter.api.BeforeEach; |
| 45 | +import org.junit.jupiter.api.Test; |
46 | 46 |
|
47 | 47 | @SuppressWarnings("restriction")
|
48 | 48 | public class BindingTableTests {
|
@@ -93,7 +93,7 @@ public class BindingTableTests {
|
93 | 93 | static IEclipseContext workbenchContext;
|
94 | 94 | private MApplication application;
|
95 | 95 |
|
96 |
| - @Before |
| 96 | + @BeforeEach |
97 | 97 | public void setUp() throws Exception {
|
98 | 98 | IEclipseContext globalContext = TestUtil.getGlobalContext();
|
99 | 99 | workbenchContext = globalContext.createChild("workbenchContext");
|
@@ -389,7 +389,7 @@ private Binding getTestBinding(String commandId) {
|
389 | 389 |
|
390 | 390 | private void assertContextSet(ContextSet set, String[] contextIds) {
|
391 | 391 | List<Context> contexts = set.getContexts();
|
392 |
| - assertEquals(contexts.toString(), contextIds.length, contexts.size()); |
| 392 | + assertEquals(contextIds.length, contexts.size(), contexts.toString()); |
393 | 393 | for (int i = 0; i < contextIds.length; i++) {
|
394 | 394 | assertEquals(contextIds[i], contexts.get(i).getId());
|
395 | 395 | }
|
|
0 commit comments