From 8e3fe0922d656ba6999e94df0a5b3ea0ed27d38a Mon Sep 17 00:00:00 2001 From: Aleksandar Kurtakov Date: Wed, 14 May 2025 09:39:06 +0300 Subject: [PATCH] Convert TypedEvent tests to JUnit 5 --- .../Test_org_eclipse_swt_events_TypedEvent.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TypedEvent.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TypedEvent.java index 984beb1dba4..63378e94ae1 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TypedEvent.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TypedEvent.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2025 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -13,16 +13,15 @@ *******************************************************************************/ package org.eclipse.swt.tests.junit; - -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; import org.eclipse.swt.events.TypedEvent; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Shell; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; /** * Automated Test Suite for class org.eclipse.swt.events.TypedEvent @@ -31,12 +30,12 @@ */ public class Test_org_eclipse_swt_events_TypedEvent { -@Before +@BeforeEach public void setUp() { shell = new Shell(); } -@After +@AfterEach public void tearDown() { shell.dispose(); }