[jboss-cvs] JBossAS SVN: r87738 - projects/jboss-deployers/branches/Branch_2_0/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/redeploy/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Apr 23 17:15:34 EDT 2009
Author: alesj
Date: 2009-04-23 17:15:34 -0400 (Thu, 23 Apr 2009)
New Revision: 87738
Modified:
projects/jboss-deployers/branches/Branch_2_0/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/redeploy/test/VFSRedeployTestCase.java
Log:
Extract method.
Modified: projects/jboss-deployers/branches/Branch_2_0/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/redeploy/test/VFSRedeployTestCase.java
===================================================================
--- projects/jboss-deployers/branches/Branch_2_0/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/redeploy/test/VFSRedeployTestCase.java 2009-04-23 21:13:55 UTC (rev 87737)
+++ projects/jboss-deployers/branches/Branch_2_0/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/redeploy/test/VFSRedeployTestCase.java 2009-04-23 21:15:34 UTC (rev 87738)
@@ -27,9 +27,9 @@
import org.jboss.deployers.client.spi.DeployerClient;
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.DeploymentState;
+import org.jboss.deployers.vfs.plugins.structure.jar.JARStructure;
import org.jboss.deployers.vfs.spi.client.VFSDeployment;
import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
-import org.jboss.deployers.vfs.plugins.structure.jar.JARStructure;
import org.jboss.test.deployers.BaseDeployersVFSTest;
import org.jboss.virtual.VFS;
import org.jboss.virtual.VirtualFile;
@@ -120,8 +120,7 @@
VFSDeployment context = createDeployment("/bean", "/toplevel/test.jar");
try
{
- addDeployment(main, context);
- assertEquals("Should be Deployed " + context, DeploymentState.DEPLOYED, main.getDeploymentState(context.getName()));
+ assertAddDeployment(main, context);
}
finally
{
@@ -137,14 +136,18 @@
VFSDeployment context = createDeployment("/bean", "/toplevel/test.jar");
try
{
- addDeployment(main, context);
- assertEquals("Should be Deployed " + context, DeploymentState.DEPLOYED, main.getDeploymentState(context.getName()));
- addDeployment(main, context);
- assertEquals("Should be Deployed " + context, DeploymentState.DEPLOYED, main.getDeploymentState(context.getName()));
+ assertAddDeployment(main, context);
+ assertAddDeployment(main, context);
}
finally
{
assertUndeploy(main, context);
}
}
+
+ protected void assertAddDeployment(DeployerClient main, VFSDeployment context) throws Exception
+ {
+ addDeployment(main, context);
+ assertEquals("Should be Deployed " + context, DeploymentState.DEPLOYED, main.getDeploymentState(context.getName()));
+ }
}
More information about the jboss-cvs-commits
mailing list