Package org.jboss.test.virtual.support

Examples of org.jboss.test.virtual.support.VirtualFileAdaptor


      testVirtualFileAdaptor(file, "beans");
   }

   protected void testVirtualFileAdaptor(VirtualFile file, String pathName) throws Exception
   {
      VirtualFileAdaptor adaptor = new VirtualFileAdaptor(file);
      adaptor = serializeDeserialize(adaptor, VirtualFileAdaptor.class);
      VirtualFileAdaptor vfaChild = adaptor.findChild(pathName);
      assertNotNull(vfaChild);
      List<VirtualFile> children = file.getChildren();
      if (children != null)
      {
         for (VirtualFile child : children)
         {
            adaptor = new VirtualFileAdaptor(child);
            adaptor = serializeDeserialize(adaptor, VirtualFileAdaptor.class);
            assertNotNull(adaptor.findChild("..")); // should find parent
         }
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.virtual.support.VirtualFileAdaptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.