Package org.jboss.virtual

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


   }

   public void testMkDir() throws Exception
   {
      AssembledDirectory directory = AssembledContextFactory.getInstance().create("foo.jar");
      directory.mkdir("META-INF");
      assertNotNull(directory.getChild("META-INF"));
   }

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


   public void testVfs() throws Exception
   {
      AssembledDirectory jar = AssembledContextFactory.getInstance().create("vfs-test2.jar");
      String[] includes = {"org/jboss/embedded/test/vfs/*.class"};
      jar.addResources(DAO.class, includes, null);
      jar.mkdir("META-INF").addResource("vfs-test-persistence.xml", "persistence.xml");
      Bootstrap.getInstance().deploy(jar);
      DAO dao = (DAO)new InitialContext().lookup("DAOBean/local");
      dao.create("Bill");
      Customer cust = dao.find("Bill");
      assertNotNull(cust);
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.