[jboss-cvs] JBossAS SVN: r82109 - projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/dependency/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 8 06:47:53 EST 2008
Author: alesj
Date: 2008-12-08 06:47:52 -0500 (Mon, 08 Dec 2008)
New Revision: 82109
Modified:
projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/dependency/test/DependenciesTestCase.java
Log:
Add redeploy tests.
Modified: projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/dependency/test/DependenciesTestCase.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/dependency/test/DependenciesTestCase.java 2008-12-08 10:46:11 UTC (rev 82108)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/dependency/test/DependenciesTestCase.java 2008-12-08 11:47:52 UTC (rev 82109)
@@ -117,4 +117,63 @@
undeploy(du);
}
}
+
+ public void testBeanRedeploy() throws Throwable
+ {
+ DeploymentUnit du = addDeployment("/dependency", "bean");
+ try
+ {
+ assertDeployment(du, new ControllerState("PreReal"));
+ DeploymentUnit tmDU = assertDeploy("/dependency", "support");
+ try
+ {
+ assertDeployment(du, ControllerState.INSTALLED);
+
+ undeploy(tmDU);
+
+ assertDeployment(du, new ControllerState("PreReal"));
+
+ tmDU = assertDeploy("/dependency", "support");
+
+ assertDeployment(du, ControllerState.INSTALLED);
+ }
+ finally
+ {
+ undeploy(tmDU);
+ }
+ }
+ finally
+ {
+ undeploy(du);
+ }
+ }
+
+ public void testModuleAndAliasRedeploy() throws Throwable
+ {
+ DeploymentUnit du = addDeployment("/dependency", "module");
+ try
+ {
+ assertDeployment(du, ControllerState.PRE_INSTALL);
+ DeploymentUnit aliasDU = assertDeploy("/dependency", "alias");
+ try
+ {
+ assertDeployment(aliasDU, ControllerState.INSTALLED);
+ assertDeployment(du, ControllerState.INSTALLED);
+
+ undeploy(aliasDU);
+ assertDeployment(du, ControllerState.PRE_INSTALL);
+
+ aliasDU = assertDeploy("/dependency", "alias");
+ assertDeployment(du, ControllerState.INSTALLED);
+ }
+ finally
+ {
+ undeploy(aliasDU);
+ }
+ }
+ finally
+ {
+ undeploy(du);
+ }
+ }
}
More information about the jboss-cvs-commits
mailing list