You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by jw...@apache.org on 2012/11/08 15:10:09 UTC
svn commit: r1407087 -
/aries/trunk/subsystem/subsystem-itests/src/test/java/org/apache/aries/subsystem/itests/AriesSubsystemTest.java
Author: jwross
Date: Thu Nov 8 14:10:08 2012
New Revision: 1407087
URL: http://svn.apache.org/viewvc?rev=1407087&view=rev
Log:
ARIES-956: More robust add requirements test.
Added a requirement to the composite's deployment manifest in order to ensure existing requirements are retained when
adding more requirements post-installation.
Modified:
aries/trunk/subsystem/subsystem-itests/src/test/java/org/apache/aries/subsystem/itests/AriesSubsystemTest.java
Modified: aries/trunk/subsystem/subsystem-itests/src/test/java/org/apache/aries/subsystem/itests/AriesSubsystemTest.java
URL: http://svn.apache.org/viewvc/aries/trunk/subsystem/subsystem-itests/src/test/java/org/apache/aries/subsystem/itests/AriesSubsystemTest.java?rev=1407087&r1=1407086&r2=1407087&view=diff
==============================================================================
--- aries/trunk/subsystem/subsystem-itests/src/test/java/org/apache/aries/subsystem/itests/AriesSubsystemTest.java (original)
+++ aries/trunk/subsystem/subsystem-itests/src/test/java/org/apache/aries/subsystem/itests/AriesSubsystemTest.java Thu Nov 8 14:10:08 2012
@@ -36,7 +36,7 @@ public class AriesSubsystemTest extends
private static final String APPLICATION_A = "application.a.esa";
/*
* Bundle-SymbolicName: bundle.a.jar
- * Import-Package: org.osgi.framework
+ * Import-Package: org.osgi.framework,org.osgi.resource
*/
private static final String BUNDLE_A = "bundle.a.jar";
/*
@@ -58,7 +58,7 @@ public class AriesSubsystemTest extends
private static void createBundleA() throws IOException {
Map<String, String> headers = new HashMap<String, String>();
- headers.put(Constants.IMPORT_PACKAGE, "org.osgi.framework");
+ headers.put(Constants.IMPORT_PACKAGE, "org.osgi.framework,org.osgi.resource");
createBundle(BUNDLE_A, headers);
}
@@ -71,6 +71,7 @@ public class AriesSubsystemTest extends
Map<String, String> attributes = new HashMap<String, String>();
attributes.put(SubsystemConstants.SUBSYSTEM_SYMBOLICNAME, COMPOSITE_A);
attributes.put(SubsystemConstants.SUBSYSTEM_TYPE, SubsystemConstants.SUBSYSTEM_TYPE_COMPOSITE);
+ attributes.put(Constants.IMPORT_PACKAGE, "org.osgi.resource");
createManifest(COMPOSITE_A + ".mf", attributes);
}