Skip to content

Commit d522f6e

Browse files
committed
Convert TypedEvent tests to JUnit 5
1 parent 30797bd commit d522f6e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

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

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2015 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -13,16 +13,15 @@
1313
*******************************************************************************/
1414
package org.eclipse.swt.tests.junit;
1515

16-
17-
import static org.junit.Assert.assertNotNull;
18-
import static org.junit.Assert.assertTrue;
16+
import static org.junit.jupiter.api.Assertions.assertNotNull;
17+
import static org.junit.jupiter.api.Assertions.assertTrue;
1918

2019
import org.eclipse.swt.events.TypedEvent;
2120
import org.eclipse.swt.widgets.Event;
2221
import org.eclipse.swt.widgets.Shell;
23-
import org.junit.After;
24-
import org.junit.Before;
25-
import org.junit.Test;
22+
import org.junit.jupiter.api.AfterEach;
23+
import org.junit.jupiter.api.BeforeEach;
24+
import org.junit.jupiter.api.Test;
2625

2726
/**
2827
* Automated Test Suite for class org.eclipse.swt.events.TypedEvent
@@ -31,12 +30,12 @@
3130
*/
3231
public class Test_org_eclipse_swt_events_TypedEvent {
3332

34-
@Before
33+
@BeforeEach
3534
public void setUp() {
3635
shell = new Shell();
3736
}
3837

39-
@After
38+
@AfterEach
4039
public void tearDown() {
4140
shell.dispose();
4241
}

0 commit comments

Comments
 (0)