Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2011-12-28 08:15:04 -0500
committerFlorian Waibel2011-12-28 08:15:04 -0500
commit51a2b96b9066e279e1bdc980a26495a3b2b18ae0 (patch)
treed1c9c38a3eb1f7a6d6678bf658af2f2f9acc8eb9 /org.eclipse.virgo.kernel.deployer.test/src/test/java
parent53b6c5396d1cd86e91cb56b79aebfabc9fce355d (diff)
downloadorg.eclipse.virgo.kernel-51a2b96b9066e279e1bdc980a26495a3b2b18ae0.tar.gz
org.eclipse.virgo.kernel-51a2b96b9066e279e1bdc980a26495a3b2b18ae0.tar.xz
org.eclipse.virgo.kernel-51a2b96b9066e279e1bdc980a26495a3b2b18ae0.zip
#365034 - Added (green?) integration tests for 3.
Diffstat (limited to 'org.eclipse.virgo.kernel.deployer.test/src/test/java')
-rw-r--r--org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/PlanDeploymentWithNestedDAGTests.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/PlanDeploymentWithNestedDAGTests.java b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/PlanDeploymentWithNestedDAGTests.java
new file mode 100644
index 00000000..f6840905
--- /dev/null
+++ b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/PlanDeploymentWithNestedDAGTests.java
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2011 EclipseSource
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * EclipseSource - initial contribution
+ *******************************************************************************/
+
+package org.eclipse.virgo.kernel.deployer.test;
+
+import static org.eclipse.virgo.kernel.deployer.test.PlanDeploymentTests.assertBundlesInstalled;
+import static org.eclipse.virgo.kernel.deployer.test.PlanDeploymentTests.assertBundlesNotInstalled;
+
+import java.io.File;
+
+import org.eclipse.virgo.kernel.deployer.core.DeploymentIdentity;
+import org.junit.Test;
+
+public class PlanDeploymentWithNestedDAGTests extends AbstractDeployerIntegrationTest {
+
+ private static final String BUNDLE_ONE_SYMBOLIC_NAME = "simple.bundle.one";
+
+ @Test
+ // 3. (@see https://bugs.eclipse.org/bugs/show_bug.cgi?id=365034)
+ public void testNestedPlanWithSharedBundle() throws Exception {
+
+ DeploymentIdentity deploymentIdentity = this.deployer.deploy(new File("src/test/resources/testunscopednonatomicNested.plan").toURI());
+ assertBundlesInstalled(this.context.getBundles(), BUNDLE_ONE_SYMBOLIC_NAME);
+ // TODO - check that the bundle in installed once?!
+
+ this.deployer.undeploy(deploymentIdentity);
+ assertBundlesNotInstalled(this.context.getBundles(), BUNDLE_ONE_SYMBOLIC_NAME);
+ }
+
+}

Back to the top