Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2010-04-22 03:45:16 +0000
committerSimon Kaegi2010-04-22 03:45:16 +0000
commit62e7bb71c0cb4ff8b9737389e320bd1871d9b15b (patch)
tree09978cc92967d0146fcbff23f60e8f741d20f6be /bundles/org.eclipse.equinox.cm.test
parent98edc8a988aef42cfd7bda2db2c5315caf462396 (diff)
downloadrt.equinox.bundles-62e7bb71c0cb4ff8b9737389e320bd1871d9b15b.tar.gz
rt.equinox.bundles-62e7bb71c0cb4ff8b9737389e320bd1871d9b15b.tar.xz
rt.equinox.bundles-62e7bb71c0cb4ff8b9737389e320bd1871d9b15b.zip
Bug 288253 - ConfigurationAdmin after Configuration.setLocation() change: ManagedService instance not called when PID is updatedv20100520
Diffstat (limited to 'bundles/org.eclipse.equinox.cm.test')
-rw-r--r--bundles/org.eclipse.equinox.cm.test/META-INF/MANIFEST.MF2
-rw-r--r--bundles/org.eclipse.equinox.cm.test/src/org/eclipse/equinox/cm/test/ManagedServiceTest.java14
2 files changed, 14 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.cm.test/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.cm.test/META-INF/MANIFEST.MF
index 35188f5f8..a1b9acaab 100644
--- a/bundles/org.eclipse.equinox.cm.test/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.cm.test/META-INF/MANIFEST.MF
@@ -4,7 +4,7 @@ Bundle-Name: Test Plug-in
Bundle-SymbolicName: org.eclipse.equinox.cm.test
Bundle-Version: 1.0.0
Bundle-Activator: org.eclipse.equinox.cm.test.Activator
-Import-Package: junit.framework;version="[3.8.0,4.0.0)",
+Import-Package: junit.framework;version="3.8.1",
org.osgi.framework;version="1.3.0",
org.osgi.service.cm;version="1.2.0",
org.osgi.service.event;version="1.1.0",
diff --git a/bundles/org.eclipse.equinox.cm.test/src/org/eclipse/equinox/cm/test/ManagedServiceTest.java b/bundles/org.eclipse.equinox.cm.test/src/org/eclipse/equinox/cm/test/ManagedServiceTest.java
index 28671dd15..2d671c3b7 100644
--- a/bundles/org.eclipse.equinox.cm.test/src/org/eclipse/equinox/cm/test/ManagedServiceTest.java
+++ b/bundles/org.eclipse.equinox.cm.test/src/org/eclipse/equinox/cm/test/ManagedServiceTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others
+ * Copyright (c) 2007, 2010 IBM Corporation and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -126,6 +126,18 @@ public class ManagedServiceTest extends TestCase {
assertEquals(2, updateCount);
}
+ String location = config.getBundleLocation();
+ config.setBundleLocation("bogus");
+ synchronized (lock) {
+ config.update();
+ locked = true;
+ lock.wait(100);
+ assertTrue(locked);
+ assertEquals(2, updateCount);
+ locked = false;
+ }
+ config.setBundleLocation(location);
+
dict.remove(Constants.SERVICE_PID);
synchronized (lock) {
reg.setProperties(dict);

Back to the top