Package org.jboss.virtual

Examples of org.jboss.virtual.VirtualFile.closeStreams()


      VirtualFile file = VFS.getRoot(context.getRootURI());
      InputStream stream = file.openStream();
      assertEquals(1, stream.read());
     
      file.closeStreams();
      assertEquals(-1, stream.read());
   }

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


      VirtualFile file = VFS.getRoot(context.getRootURI());
      InputStream stream = file.openStream();
      assertEquals(1, stream.read());
     
      file.closeStreams();
      assertEquals(-1, stream.read());
   }

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

               excess.add(name);
         }
         assertEquals("No missing entries: "+missingEntries, 0, missingEntries.size());
         assertEquals("Excess entries: " + excess, 0, excess.size());
      }
      classes.closeStreams();
   }

   // we need to make sure this doesn't get touched before
   protected String getNestedName()
   {
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.