diff --git a/bundles/org.eclipse.osgi.tests/META-INF/MANIFEST.MF b/bundles/org.eclipse.osgi.tests/META-INF/MANIFEST.MF
index e6f242c9e86..0180cff5d86 100644
--- a/bundles/org.eclipse.osgi.tests/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.osgi.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Core OSGi Tests
Bundle-SymbolicName: org.eclipse.osgi.tests;singleton:=true
-Bundle-Version: 3.20.300.qualifier
+Bundle-Version: 3.22.100.qualifier
Bundle-Vendor: Eclipse.org
Require-Bundle:
org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
diff --git a/bundles/org.eclipse.osgi.tests/pom.xml b/bundles/org.eclipse.osgi.tests/pom.xml
index 74175d32aee..5cd857425a7 100644
--- a/bundles/org.eclipse.osgi.tests/pom.xml
+++ b/bundles/org.eclipse.osgi.tests/pom.xml
@@ -19,7 +19,7 @@
org.eclipse.osgi
org.eclipse.osgi.tests
- 3.20.300-SNAPSHOT
+ 3.22.100-SNAPSHOT
eclipse-test-plugin
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleTests.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleTests.java
index f0ab86d6a74..7f59115958d 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleTests.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleTests.java
@@ -40,7 +40,8 @@
PlatformAdminBundleTests.class, //
ListenerTests.class, //
AddDynamicImportTests.class, //
- BundleNativeCodeTests.class //
+ BundleNativeCodeTests.class, //
+ IllegalStateExceptionTests.class
})
public class BundleTests {
}
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/ExceptionMessageTest.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/ExceptionMessageTest.java
index f00805d56e4..99d03ddcd44 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/ExceptionMessageTest.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/ExceptionMessageTest.java
@@ -26,7 +26,6 @@
import org.eclipse.osgi.tests.OSGiTestsActivator;
import org.junit.Test;
import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleException;
import org.osgi.framework.Constants;
import org.osgi.framework.FrameworkUtil;
@@ -52,16 +51,6 @@ public void testUninstallModuleError() throws BundleException {
assertTrue("Wrong message: " + e.getMessage(), e.getMessage().endsWith(b.adapt(Module.class).toString()));
}
- @Test
- public void testUninstallContextError() throws BundleException {
- Bundle b = installer.installBundle("test");
- b.start();
- BundleContext context = b.getBundleContext();
- b.uninstall();
- IllegalStateException e = assertThrows(IllegalStateException.class, () -> context.createFilter("(a=b)"));
- assertTrue("Wrong message: " + e.getMessage(), e.getMessage().endsWith(b.toString()));
- }
-
@Test
public void testStartFragmentError() throws BundleException, IOException {
Map headers = new HashMap<>();
@@ -101,23 +90,10 @@ public void testUnregisterSetPropsError() throws BundleException {
IllegalStateException e1 = assertThrows(IllegalStateException.class, () -> reg.setProperties(props2));
assertTrue("Wrong message: " + e1.getMessage(), e1.getMessage().endsWith(reg.toString()));
- IllegalStateException e2 = assertThrows(IllegalStateException.class, () -> reg.unregister());
- assertTrue("Wrong message: " + e2.getMessage(), e2.getMessage().endsWith(reg.toString()));
-
IllegalStateException e3 = assertThrows(IllegalStateException.class, () -> reg.getReference());
assertTrue("Wrong message: " + e3.getMessage(), e3.getMessage().endsWith(reg.toString()));
}
- @Test
- public void testUnregisterTwiceError() throws BundleException {
- Bundle b = installer.installBundle("test");
- b.start();
- BundleContext context = b.getBundleContext();
- ServiceRegistration