Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2010-12-31 12:06:23 -0500
committerGlyn Normington2010-12-31 12:06:23 -0500
commit1c30618885e76b66ef407ef8cb75ecffd3084957 (patch)
tree132ffb1fea60600cbebb0baeab34bca91209ab90 /org.eclipse.virgo.kernel.deployer.test
parent22087fdee872622a5b4068fb4267cf70776df1ab (diff)
parent0acd1f66b563a71f38b33f27334930a1654ebff5 (diff)
downloadorg.eclipse.virgo.kernel-1c30618885e76b66ef407ef8cb75ecffd3084957.tar.gz
org.eclipse.virgo.kernel-1c30618885e76b66ef407ef8cb75ecffd3084957.tar.xz
org.eclipse.virgo.kernel-1c30618885e76b66ef407ef8cb75ecffd3084957.zip
Merge branch 'master' into bug330776-framework-hooks
Diffstat (limited to 'org.eclipse.virgo.kernel.deployer.test')
-rw-r--r--org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/ParDeploymentTests.java13
-rwxr-xr-xorg.eclipse.virgo.kernel.deployer.test/src/test/resources/bug331767.parbin0 -> 1514 bytes
2 files changed, 12 insertions, 1 deletions
diff --git a/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/ParDeploymentTests.java b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/ParDeploymentTests.java
index cc4b50e7..82229325 100644
--- a/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/ParDeploymentTests.java
+++ b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/ParDeploymentTests.java
@@ -33,9 +33,12 @@ import org.osgi.service.cm.Configuration;
public class ParDeploymentTests extends AbstractDeployerIntegrationTest {
private static final File PAR_FILE = new File("src/test/resources/BundlesAndConfig.par");
+ private static final File PAR_FOR_BUG331767 = new File("src/test/resources/bug331767.par");
private static final String BUNDLE_SYMBOLIC_NAME = "appA-1-bundleA";
- private static final Version BUNDLE_VERSION = new Version(1,0,0);
+ private static final String BUNDLE_SYMBOLIC_NAME_BUG331767 = "PARbug331767-1-BUNDLEbug331767";
+ private static final Version BUNDLE_VERSION = new Version(1,0,0);
+
@Test
public void deployParContainingBundlesAndProperties() throws DeploymentException, IOException, InvalidSyntaxException {
@@ -54,6 +57,14 @@ public class ParDeploymentTests extends AbstractDeployerIntegrationTest {
assertBundleNotPresent(BUNDLE_SYMBOLIC_NAME, BUNDLE_VERSION);
}
+
+ @Test
+ public void deployParContainingDynamicImportStar() throws DeploymentException {
+ DeploymentIdentity deploymentIdentity = this.deployer.deploy(PAR_FOR_BUG331767.toURI());
+ assertBundlePresent(BUNDLE_SYMBOLIC_NAME_BUG331767, BUNDLE_VERSION);
+ this.deployer.undeploy(deploymentIdentity);
+ assertBundleNotPresent(BUNDLE_SYMBOLIC_NAME_BUG331767, BUNDLE_VERSION);
+ }
private void assertBundlePresent(String symbolicName, Version version) {
Bundle[] bundles = this.context.getBundles();
diff --git a/org.eclipse.virgo.kernel.deployer.test/src/test/resources/bug331767.par b/org.eclipse.virgo.kernel.deployer.test/src/test/resources/bug331767.par
new file mode 100755
index 00000000..12f8caf8
--- /dev/null
+++ b/org.eclipse.virgo.kernel.deployer.test/src/test/resources/bug331767.par
Binary files differ

Back to the top