diff --git a/ua/org.eclipse.tips.tests/META-INF/MANIFEST.MF b/ua/org.eclipse.tips.tests/META-INF/MANIFEST.MF index d0b4d847305..f6ea7de4451 100644 --- a/ua/org.eclipse.tips.tests/META-INF/MANIFEST.MF +++ b/ua/org.eclipse.tips.tests/META-INF/MANIFEST.MF @@ -5,8 +5,7 @@ Bundle-SymbolicName: org.eclipse.tips.tests Bundle-Version: 1.2.0.qualifier Bundle-Vendor: Eclipse Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.tips.examples;bundle-version="0.1.0", - org.eclipse.tips.ide;bundle-version="0.1.0", +Require-Bundle: org.eclipse.tips.ide;bundle-version="0.1.0", org.eclipse.core.runtime;bundle-version="3.29.0", org.eclipse.swt, org.eclipse.jface;bundle-version="3.12.0", @@ -17,4 +16,5 @@ Automatic-Module-Name: org.eclipse.tips.tests Import-Package: com.google.gson;version="[2.8.6,3.0.0)", org.assertj.core.api, org.junit.jupiter.api, - org.junit.jupiter.api.function + org.junit.jupiter.api.function, + org.junit.platform.suite.api diff --git a/ua/org.eclipse.tips.tests/build.properties b/ua/org.eclipse.tips.tests/build.properties index 3605267ddfe..f65727170e5 100644 --- a/ua/org.eclipse.tips.tests/build.properties +++ b/ua/org.eclipse.tips.tests/build.properties @@ -14,5 +14,9 @@ source.. = src/ output.. = bin/ bin.includes = META-INF/,\ + icons/,\ . src.includes = about.html +pom.model.property.testClass = org.eclipse.tips.tests.AllTipsTests +pom.model.property.tycho.surefire.useUIHarness = true +pom.model.property.tycho.surefire.useUIThread = true diff --git a/ua/org.eclipse.tips.tests/icons/dummy.png b/ua/org.eclipse.tips.tests/icons/dummy.png new file mode 100644 index 00000000000..e549e622c8e Binary files /dev/null and b/ua/org.eclipse.tips.tests/icons/dummy.png differ diff --git a/ua/org.eclipse.tips.tests/src/org/eclipse/tips/core/TestTipProvider.java b/ua/org.eclipse.tips.tests/src/org/eclipse/tips/core/TestTipProvider.java index df829b5a42f..a2368208d90 100644 --- a/ua/org.eclipse.tips.tests/src/org/eclipse/tips/core/TestTipProvider.java +++ b/ua/org.eclipse.tips.tests/src/org/eclipse/tips/core/TestTipProvider.java @@ -46,7 +46,7 @@ public String getID() { @Override public TipImage getImage() { if (image == null) { - URL url = Platform.getBundle("org.eclipse.tips.examples").getEntry("icons/48/c++.png"); + URL url = Platform.getBundle("org.eclipse.tips.tests").getEntry("icons/dummy.png"); Image pluginImage = resourceManager.get(ImageDescriptor.createFromURL(url)); String base64 = ImageUtil.decodeFromImage(pluginImage, SWT.IMAGE_PNG); image = new TipImage(base64); diff --git a/ua/org.eclipse.tips.tests/src/org/eclipse/tips/tests/AllTipsTests.java b/ua/org.eclipse.tips.tests/src/org/eclipse/tips/tests/AllTipsTests.java new file mode 100644 index 00000000000..8bc94da9edb --- /dev/null +++ b/ua/org.eclipse.tips.tests/src/org/eclipse/tips/tests/AllTipsTests.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2024 Vector Informatik GmbH and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.tips.tests; + +import org.eclipse.tips.core.TipImageBas64Test; +import org.eclipse.tips.core.TipImageURLTest; +import org.eclipse.tips.core.TipManagerTest; +import org.eclipse.tips.core.TipProviderTest; +import org.eclipse.tips.core.TipTest; +import org.eclipse.tips.json.internal.UtilTest; +import org.eclipse.tips.util.ImageUtilTest; +import org.junit.platform.suite.api.SelectClasses; +import org.junit.platform.suite.api.Suite; + +@Suite +@SelectClasses({ // + TipImageBas64Test.class, // + TipImageURLTest.class, // + TipManagerTest.class, // + TipProviderTest.class, // + TipTest.class, // + UtilTest.class, // + ImageUtilTest.class, // +}) +public class AllTipsTests { + +} diff --git a/ua/pom.xml b/ua/pom.xml index 29a777625aa..6fbe2968566 100644 --- a/ua/pom.xml +++ b/ua/pom.xml @@ -41,8 +41,8 @@ org.eclipse.tips.ide org.eclipse.tips.json org.eclipse.tips.feature + org.eclipse.tips.tests infocenter-web -