[jboss-cvs] JBossAS SVN: r114824 - projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 24 18:10:04 EDT 2014


Author: bmaxwell
Date: 2014-09-24 18:10:04 -0400 (Wed, 24 Sep 2014)
New Revision: 114824

Modified:
   projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/MetaDataStructureModificationTestCase.java
   projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/StructureModificationTest.java
Log:
[JBPAPP-11187] check in testcase update

Modified: projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/MetaDataStructureModificationTestCase.java
===================================================================
--- projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/MetaDataStructureModificationTestCase.java	2014-09-24 22:08:53 UTC (rev 114823)
+++ projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/MetaDataStructureModificationTestCase.java	2014-09-24 22:10:04 UTC (rev 114824)
@@ -29,6 +29,7 @@
 import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
 import org.jboss.deployers.vfs.spi.structure.modified.MetaDataStructureModificationChecker;
 import org.jboss.deployers.vfs.spi.structure.modified.StructureCache;
+import org.jboss.deployers.vfs.spi.structure.modified.StructureCacheFilter;
 import org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker;
 import org.jboss.test.deployers.vfs.structure.modified.support.XmlIncludeVirtualFileFilter;
 import org.jboss.virtual.AssembledDirectory;
@@ -58,6 +59,7 @@
       MetaDataStructureModificationChecker structureModificationChecker = new MetaDataStructureModificationChecker(mainDeployerStructure);
       structureModificationChecker.setCache(createStructureCache());
       structureModificationChecker.setFilter(filter);
+      structureModificationChecker.setCacheFilter(cfilter);
       return structureModificationChecker;
    }
 
@@ -71,6 +73,11 @@
       return new XmlIncludeVirtualFileFilter();
    }
 
+   protected StructureCacheFilter createCacheFilter()
+   {
+      return new XmlIncludeVirtualFileFilter();
+   }
+
    protected void testStructureModified(AssembledDirectory ear, StructureModificationChecker checker, VFSDeploymentUnit deploymentUnit) throws Exception
    {
       VirtualFile root = deploymentUnit.getRoot();
@@ -174,4 +181,4 @@
          undeploy(vdu);
       }
    }
-}
\ No newline at end of file
+}

Modified: projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/StructureModificationTest.java
===================================================================
--- projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/StructureModificationTest.java	2014-09-24 22:08:53 UTC (rev 114823)
+++ projects/jboss-deployers/branches/deployers-vfs-2.0.10.GA-JBPAPP-11187/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/StructureModificationTest.java	2014-09-24 22:10:04 UTC (rev 114824)
@@ -22,8 +22,9 @@
 package org.jboss.test.deployers.vfs.structure.modified.test;
 
 import org.jboss.deployers.structure.spi.main.MainDeployerStructure;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.deployers.vfs.spi.structure.modified.StructureCacheFilter;
 import org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker;
-import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
 import org.jboss.test.deployers.vfs.webbeans.test.AbstractWebBeansTest;
 import org.jboss.virtual.AssembledDirectory;
 import org.jboss.virtual.VirtualFileFilter;
@@ -44,12 +45,14 @@
    {
       MainDeployerStructure mainDeployer = getMainDeployerStructure();
       VirtualFileFilter filter = createFilter();
-      return createStructureModificationChecker(mainDeployer, filter);
+      StructureCacheFilter cfilter = createCacheFilter();
+      return createStructureModificationChecker(mainDeployer, filter, cfilter);
    }
 
-   protected abstract StructureModificationChecker createStructureModificationChecker(MainDeployerStructure mainDeployerStructure, VirtualFileFilter filter);
+   protected abstract StructureModificationChecker createStructureModificationChecker(MainDeployerStructure mainDeployerStructure, VirtualFileFilter filter, StructureCacheFilter cfilter);
 
    protected abstract VirtualFileFilter createFilter();
+   protected abstract StructureCacheFilter createCacheFilter();
 
    public void testDoBasicTest() throws Exception
    {



More information about the jboss-cvs-commits mailing list