Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2011-10-12 10:28:17 -0400
committerGlyn Normington2011-10-12 10:28:17 -0400
commit6a939c6a2d403daebe9c25ab3f7e54e5203f9765 (patch)
tree48fbae0c015423e7217a0a8f55cd9e4a456f92ec /org.eclipse.virgo.kernel.deployer.test/src/test/java
parentf719700798e675ef81078fb4fffede2e8419d59c (diff)
downloadorg.eclipse.virgo.kernel-6a939c6a2d403daebe9c25ab3f7e54e5203f9765.tar.gz
org.eclipse.virgo.kernel-6a939c6a2d403daebe9c25ab3f7e54e5203f9765.tar.xz
org.eclipse.virgo.kernel-6a939c6a2d403daebe9c25ab3f7e54e5203f9765.zip
bug 360671: Test in which synthetic context class loader is not set as TCCL
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/SyntheticContextTCCLIntegrationTests.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/SyntheticContextTCCLIntegrationTests.java b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/SyntheticContextTCCLIntegrationTests.java
new file mode 100644
index 00000000..0d10e2f2
--- /dev/null
+++ b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/SyntheticContextTCCLIntegrationTests.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2011 VMware Inc.
+ * 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:
+ * VMware Inc. - initial contribution
+ *******************************************************************************/
+
+package org.eclipse.virgo.kernel.deployer.test;
+
+import java.io.File;
+
+import org.eclipse.virgo.kernel.deployer.core.DeploymentIdentity;
+import org.junit.Test;
+
+public class SyntheticContextTCCLIntegrationTests extends AbstractDeployerIntegrationTest {
+
+ @Test
+ public void testSyntheticContextIsTCCL() throws Exception {
+ File libraryBundle = new File("src/test/resources/synthetic-tccl/synthetic.tccl.global.jar");
+ DeploymentIdentity libraryBundleDeploymentId = this.deployer.deploy(libraryBundle.toURI());
+
+ try {
+ File par = new File("src/test/resources/synthetic-tccl/synthetic.tccl.par");
+ DeploymentIdentity parDeploymentId = this.deployer.deploy(par.toURI());
+
+ this.deployer.undeploy(parDeploymentId);
+ } finally {
+ this.deployer.undeploy(libraryBundleDeploymentId);
+ }
+ }
+}

Back to the top