diff options
author | BJ Hargrave | 2017-01-13 18:53:47 +0000 |
---|---|---|
committer | Thomas Watson | 2017-06-16 12:38:08 +0000 |
commit | c1ecdc3a36ce9346772eb2f51f5317257eaab41d (patch) | |
tree | ada03c90d24d6fd4e0430bef749a3a0782bae84c /bundles/org.eclipse.osgi.tests/src | |
parent | de784fbaff9c43ad3d05aa77c72c8ced459b0596 (diff) | |
download | rt.equinox.framework-c1ecdc3a36ce9346772eb2f51f5317257eaab41d.tar.gz rt.equinox.framework-c1ecdc3a36ce9346772eb2f51f5317257eaab41d.tar.xz rt.equinox.framework-c1ecdc3a36ce9346772eb2f51f5317257eaab41d.zip |
service registry: Add new ServiceReference.getProperties() method
OSGi added a new getProperties() method to ServiceReference so that a
copy of the service’s properties can be obtained.
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/src')
-rw-r--r-- | bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/filter/FilterTests.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/filter/FilterTests.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/filter/FilterTests.java index 95d4d5687..72b32f465 100644 --- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/filter/FilterTests.java +++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/filter/FilterTests.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2015 IBM Corporation and others. + * Copyright (c) 2008, 2017 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 @@ -14,6 +14,7 @@ import java.math.BigDecimal; import java.math.BigInteger; import java.util.*; import junit.framework.*; +import org.eclipse.osgi.framework.util.CaseInsensitiveDictionaryMap; import org.osgi.framework.*; public abstract class FilterTests extends TestCase { @@ -434,5 +435,13 @@ public abstract class FilterTests extends TestCase { public boolean isAssignableTo(Bundle bundle, String className) { throw new UnsupportedOperationException(); } + + @Override + public Dictionary getProperties() { + if (dictionary == null) { + return new CaseInsensitiveDictionaryMap(); + } + return new CaseInsensitiveDictionaryMap(dictionary); + } } } |