Package org.jboss.virtual

Examples of org.jboss.virtual.AssembledDirectory.clear()


      metainf.remove("bytes.tmp");
      assertNull(metainf.getChild("bytes.tmp"));

      metainf.addBytes(new byte[]{1, 2, 3}, "bytes1.tmp");
      metainf.addBytes(new byte[]{1, 2, 3}, "bytes2.tmp");
      metainf.clear();
      assertNull(metainf.getChild("bytes1.tmp"));
      assertNull(metainf.getChild("bytes2.tmp"));
   }

   public void testAddPath() throws Exception
View Full Code Here


      sar.addPath(jar1);
      List<VirtualFile> children = sar.getChildrenRecursively();
      assertNotNull(children);
      assertEquals(10, children.size());

      sar.clear();

      sar.addPath(jar1, new VirtualFileFilter()
      {
         public boolean accepts(VirtualFile file)
         {
View Full Code Here

      sar.addChild(jar1);
      List<VirtualFile> children = sar.getChildrenRecursively();
      assertNotNull(children);
      assertEquals(11, children.size());

      sar.clear();

      sar.addChild(jar1, "jar2.jar");
      VirtualFile child = sar.getChild("jar2.jar");
      children = child.getChildrenRecursively();
      assertNotNull(children);
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.