Skip to content

Commit d5dc661

Browse files
committed
Convert some tests to JUnit 5
1 parent 1eb32bc commit d5dc661

10 files changed

+312
-494
lines changed

tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledTextLineSpacingProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
*/
1414
package org.eclipse.swt.tests.junit;
1515

16-
import static org.junit.Assert.assertArrayEquals;
16+
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
1717

1818
import org.eclipse.swt.SWT;
1919
import org.eclipse.swt.custom.StyledText;
2020
import org.eclipse.swt.custom.StyledTextLineSpacingProvider;
2121
import org.eclipse.swt.widgets.Shell;
22-
import org.junit.Before;
23-
import org.junit.Test;
22+
import org.junit.jupiter.api.BeforeEach;
23+
import org.junit.jupiter.api.Test;
2424

2525
/**
2626
* Automated Test Suite for class
@@ -46,7 +46,7 @@ public Integer getLineSpacing(int lineIndex) {
4646
Shell shell;
4747
StyledText styledText;
4848

49-
@Before
49+
@BeforeEach
5050
public void setUp() {
5151
shell = new Shell();
5252
styledText = new StyledText(shell, SWT.NULL);

0 commit comments

Comments
 (0)