Examples of VFSContext


Examples of org.jboss.virtual.spi.VFSContext

      assertEquals(realLastModified, child.getLastModified());
   }

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

Examples of org.jboss.virtual.spi.VFSContext

      }
   }
  
   public void testRootSize() throws Exception
   {
      VFSContext context = getVFSContext("simple");
      VirtualFileHandler root = context.getRoot();
      long realSize = getRealSize("simple", null);
      assertEquals(realSize, root.getSize());
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContext

      assertEquals(realSize, root.getSize());
   }
  
   public void testChildSize() throws Exception
   {
      VFSContext context = getVFSContext("simple");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "child");
      long realSize = getRealSize("simple", "child");
      assertEquals(realSize, child.getSize());
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContext

      assertEquals(realSize, child.getSize());
   }

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

Examples of org.jboss.virtual.spi.VFSContext

      }
   }
  
   public void testRootIsLeaf() throws Exception
   {
      VFSContext context = getVFSContext("complex");
      VirtualFileHandler root = context.getRoot();
      assertFalse(root.isLeaf());
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContext

      assertFalse(root.isLeaf());
   }

   public void testChildIsLeaf() throws Exception
   {
      VFSContext context = getVFSContext("complex");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "child");
      assertTrue(child.isLeaf());
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContext

      assertTrue(child.isLeaf());
   }

   public void testSubFolderIsLeaf() throws Exception
   {
      VFSContext context = getVFSContext("complex");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "subfolder");
      assertFalse(child.isLeaf());
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContext

      assertFalse(child.isLeaf());
   }

   public void testSubChildIsLeaf() throws Exception
   {
      VFSContext context = getVFSContext("complex");
      VirtualFileHandler root = context.getRoot();
      VirtualFileHandler child = context.findChild(root, "subfolder/subchild");
      assertTrue(child.isLeaf());
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContext

      assertTrue(child.isLeaf());
   }

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

Examples of org.jboss.virtual.spi.VFSContext

   }

   // TODO how to test a real hidden file across platforms?
   public void testRootIsHidden() throws Exception
   {
      VFSContext context = getVFSContext("simple");
      VirtualFileHandler root = context.getRoot();
      assertFalse(root.isHidden());
   }
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.