Package org.jboss.test.virtual.support

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


         cache.start();

         // setup VFS
         VFS vfs = VFS.getVFS(rootURL);
         VFSUtils.enableCopy(vfs);
         TrackingTempStore store = new TrackingTempStore(new MockTempStore(new Random().nextLong()));
         vfs.setTempStore(store);

         try
         {
            URL directRootURL = new URL("file://" + rootText);
View Full Code Here


         cache.start();

         // setup VFS
         VFS vfs = VFS.getVFS(rootURL);
         VFSUtils.enableCopy(vfs);
         TrackingTempStore store = new TrackingTempStore(new MockTempStore(new Random().nextLong()));
         vfs.setTempStore(store);

         try
         {
            URL directRootURL = new URL("file://" + rootText);
View Full Code Here

   public void testCopyMechanism() throws Throwable
   {
      long seed = System.nanoTime();
      URL url = getResource("/vfs/test");
      VFS vfs = VFS.getVFS(url);
      TempStore store = new MkdirTempStore(new DeleteOnExitTempStore(new MockTempStore(seed)));
      vfs.setTempStore(store);
      VirtualFile file = vfs.getChild("jar1.jar");
      VirtualFile temp = VFSUtils.explode(file);
      try
      {
View Full Code Here

   {
      long seed = System.nanoTime();
      URL url = getResource("/vfs/test/nested");
      VFS vfs = VFS.getVFS(url);
      VFSUtils.enableCopy(vfs);
      TempStore store = new MkdirTempStore(new TrackingTempStore(new MockTempStore(seed)));
      try
      {
         vfs.setTempStore(store);
         VirtualFile file = vfs.getChild("nested.jar");
         assertNotNull(file.getChild("complex.jar/subfolder/subchild"));
View Full Code Here

TOP

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

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.