Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,12 @@
package org.eclipse.swt.tests.junit;


import org.eclipse.test.TracingSuite;
import org.eclipse.test.TracingSuite.TracingOptions;
import org.junit.runner.JUnitCore;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;

@RunWith(TracingSuite.class)
@TracingOptions(stackDumpTimeoutSeconds = 60)
@Suite.SuiteClasses({
@Suite
@SelectClasses({
Test_org_eclipse_swt_browser_Browser.class,
})
public class AllBrowserTests {

public static void main(String[] args) {
JUnitCore.main(AllBrowserTests.class.getName());
}
}
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -13,15 +13,14 @@
*******************************************************************************/
package org.eclipse.swt.tests.junit;

import org.junit.runner.JUnitCore;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;

/**
* Suite for testing all of the graphics test cases.
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({ Test_org_eclipse_swt_graphics_Color.class,
@Suite
@SelectClasses({ Test_org_eclipse_swt_graphics_Color.class,
Test_org_eclipse_swt_graphics_Cursor.class,
Test_org_eclipse_swt_graphics_DeviceData.class,
Test_org_eclipse_swt_graphics_Font.class,
Expand All @@ -42,7 +41,4 @@
Test_org_eclipse_swt_graphics_ImageLoaderEvent.class,
Test_org_eclipse_swt_graphics_Transform.class })
public class AllGraphicsTests {
public static void main(String[] args) {
JUnitCore.main(AllGraphicsTests.class.getName());
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2022 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
Expand All @@ -18,17 +18,16 @@
import java.util.List;

import org.eclipse.swt.graphics.Resource;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.JUnitCore;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;

/**
* Suite for running most SWT test cases (all except for browser tests).
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({ Test_org_eclipse_swt_SWT.class, Test_org_eclipse_swt_SWTException.class,
@Suite
@SelectClasses({ Test_org_eclipse_swt_SWT.class, Test_org_eclipse_swt_SWTException.class,
Test_org_eclipse_swt_SWTError.class, Test_org_eclipse_swt_widgets_Display.class, AllGraphicsTests.class,
AllWidgetTests.class, Test_org_eclipse_swt_layout_GridData.class,
Test_org_eclipse_swt_events_ControlEvent.class, Test_org_eclipse_swt_events_ModifyEvent.class,
Expand All @@ -50,7 +49,7 @@
public class AllNonBrowserTests {
private static List<Error> leakedResources;

@BeforeClass
@BeforeAll
public static void beforeClass() {
// Set up ResourceTracked to detect any leaks
leakedResources = new ArrayList<> ();
Expand All @@ -67,7 +66,7 @@ public static void beforeClass() {
* through a test and not through @AfterClass, but this is a
* suite class and not a test class, so it can't have tests.
*/
@AfterClass
@AfterAll
public static void afterClass() {
// Run GC in order do detect any outstanding leaks
System.gc ();
Expand All @@ -93,10 +92,6 @@ public static void afterClass() {
}
}

public static void main(String[] args) {
JUnitCore.main(AllNonBrowserTests.class.getName());
}

/*
* The logical order to run the tests in is: - SWT, SWTError, SWTException -
* Display - graphics classes - items and Caret, etc - widgets - dialogs -
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,21 +14,17 @@
package org.eclipse.swt.tests.junit;


import org.junit.runner.JUnitCore;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;

/**
* Suite for running all SWT test cases.
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({
@Suite
@SelectClasses({
AllNonBrowserTests.class,
AllBrowserTests.class
})
public class AllTests {

public static void main(String[] args) {
JUnitCore.main(AllTests.class.getName());
}
}
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,15 +14,14 @@
*******************************************************************************/
package org.eclipse.swt.tests.junit;

import org.junit.runner.JUnitCore;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;

/**
* Suite for testing all of the widget test cases.
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({ Test_org_eclipse_swt_widgets_Shell.class,
@Suite
@SelectClasses({ Test_org_eclipse_swt_widgets_Shell.class,
Test_org_eclipse_swt_widgets_ExpandItem.class, Test_org_eclipse_swt_widgets_MenuItem.class,
Test_org_eclipse_swt_widgets_ToolItem.class, Test_org_eclipse_swt_widgets_TabItem.class,
Test_org_eclipse_swt_widgets_TableItem.class, Test_org_eclipse_swt_widgets_TableColumn.class,
Expand Down Expand Up @@ -53,7 +52,4 @@
Test_org_eclipse_swt_widgets_ScrolledComposite.class,
Test_org_eclipse_swt_custom_BusyIndicator.class})
public class AllWidgetTests {
public static void main(String[] args) {
JUnitCore.main(AllWidgetTests.class.getName());
}
}
Loading
Loading