|
13 | 13 | *******************************************************************************/ |
14 | 14 | package org.eclipse.ui.tests.performance; |
15 | 15 |
|
16 | | -import static org.junit.Assert.fail; |
| 16 | +import static org.junit.jupiter.api.Assertions.fail; |
17 | 17 |
|
18 | 18 | import java.io.ByteArrayInputStream; |
19 | 19 | import java.io.ByteArrayOutputStream; |
|
28 | 28 | import org.eclipse.core.runtime.CoreException; |
29 | 29 | import org.eclipse.core.runtime.NullProgressMonitor; |
30 | 30 | import org.eclipse.core.runtime.Platform; |
31 | | -import org.eclipse.test.performance.PerformanceTestCaseJunit4; |
| 31 | +import org.eclipse.test.performance.PerformanceTestCaseJunit5; |
32 | 32 | import org.eclipse.ui.IViewPart; |
33 | 33 | import org.eclipse.ui.IWorkbenchPage; |
34 | 34 | import org.eclipse.ui.PartInitException; |
35 | 35 | import org.eclipse.ui.PlatformUI; |
36 | 36 | import org.eclipse.ui.navigator.resources.ProjectExplorer; |
37 | | -import org.junit.ClassRule; |
38 | | -import org.junit.Test; |
| 37 | +import org.junit.jupiter.api.Test; |
| 38 | +import org.junit.jupiter.api.extension.RegisterExtension; |
39 | 39 | import org.osgi.framework.Bundle; |
40 | 40 |
|
41 | 41 |
|
|
61 | 61 | * "sleep" to simulate computations, it only effects Elapsed Time (not CPU |
62 | 62 | * Time). |
63 | 63 | */ |
64 | | -public class OpenProjectExplorerFolderTest extends PerformanceTestCaseJunit4 { |
| 64 | +public class OpenProjectExplorerFolderTest extends PerformanceTestCaseJunit5 { |
65 | 65 |
|
66 | | - @ClassRule |
67 | | - public static final UIPerformanceTestRule uiPerformanceTestRule = new UIPerformanceTestRule(); |
| 66 | + @RegisterExtension |
| 67 | + static UIPerformanceTestRule uiPerformanceTestRule = new UIPerformanceTestRule(); |
68 | 68 |
|
69 | 69 | /* |
70 | 70 | * performance testcase for bug 106158 |
|
0 commit comments