[jboss-cvs] JBossAS SVN: r87716 - projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/deployer/bean/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 23 05:16:17 EDT 2009


Author: alesj
Date: 2009-04-23 05:16:17 -0400 (Thu, 23 Apr 2009)
New Revision: 87716

Modified:
   projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/deployer/bean/test/VFSRedeployTestCase.java
Log:
Use vfs deployer.

Modified: projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/deployer/bean/test/VFSRedeployTestCase.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/deployer/bean/test/VFSRedeployTestCase.java	2009-04-23 09:03:15 UTC (rev 87715)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/deployer/bean/test/VFSRedeployTestCase.java	2009-04-23 09:16:17 UTC (rev 87716)
@@ -25,10 +25,7 @@
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
-
 import org.jboss.deployers.spi.DeploymentException;
-import org.jboss.deployers.spi.deployer.helpers.AbstractDeployer;
-import org.jboss.deployers.structure.spi.DeploymentUnit;
 import org.jboss.deployers.vfs.deployer.kernel.BeanDeployer;
 import org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer;
 import org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer;
@@ -71,11 +68,12 @@
       VFSCacheFactory.setInstance(null);
    }
 
-   public static class VerifyVirtualFileDeployer extends AbstractDeployer {
-
-      public void deploy(DeploymentUnit unit) throws DeploymentException
+   @SuppressWarnings("deprecation")
+   public static class VerifyVirtualFileDeployer extends org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer
+   {
+      public void deploy(VFSDeploymentUnit unit) throws DeploymentException
       {
-         VirtualFile deploymentRoot = ((VFSDeploymentUnit)unit).getRoot();
+         VirtualFile deploymentRoot = unit.getRoot();
          VirtualFile registryRoot;
          try
          {
@@ -105,7 +103,6 @@
          }
 
       }
-
    }
 
    public VFSRedeployTestCase(String name) throws Throwable
@@ -141,5 +138,4 @@
       assertDeploy(context);
       assertUndeploy(context);
    }
-
 }




More information about the jboss-cvs-commits mailing list