Package org.jboss.virtual.spi

Examples of org.jboss.virtual.spi.VFSContext.findChild()


   public void testFindChildClosed() throws Exception
   {
      VFSContext context = getVFSContext("simple");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "child");
      child.close();
      try
      {
         child.findChild("");
         fail("Should not be here!");
View Full Code Here


   public void testGetVFSContextClosed() throws Exception
   {
      VFSContext context = getVFSContext("simple");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "child");
      child.close();
      try
      {
         child.getVFSContext();
         fail("Should not be here!");
View Full Code Here

   public void testChildGetVirtualFile() throws Exception
   {
      VFSContext context = getVFSContext("complex");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "child");
      checkVirtualFile(child);
   }

   public void testSubFolderGetVirtualFile() throws Exception
   {
View Full Code Here

   public void testSubFolderGetVirtualFile() throws Exception
   {
      VFSContext context = getVFSContext("complex");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "subfolder");
      checkVirtualFile(child);
   }

   public void testSubChildGetVirtualFile() throws Exception
   {
View Full Code Here

   public void testSubChildGetVirtualFile() throws Exception
   {
      VFSContext context = getVFSContext("complex");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "subfolder/subchild");
      checkVirtualFile(child);
   }

   public void testGetVirtualFileClosed() throws Exception
   {
View Full Code Here

   public void testGetVirtualFileClosed() throws Exception
   {
      VFSContext context = getVFSContext("simple");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "child");
      child.close();
      try
      {
         child.getVirtualFile();
         fail("Should not be here!");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.