Package org.jboss.vfs

Examples of org.jboss.vfs.VirtualFile


      }
   }
  
   public void testWeldDeployment() throws Exception
   {
      VirtualFile top = VFS.getChild("top-level.ear");
      createAssembledDirectory(top)
         .addPath("/weld/mcandweld/ear/weldonly");
      createWeldLib(top, "/weld/mcandweld/weld", SimpleWebBean.class);
     
      testBootstrap(top, new RunSpecificTest()
View Full Code Here


      });
   }

   public void testWeldAndMcDeployment() throws Exception
   {
      VirtualFile top = VFS.getChild("top-level.ear");
      createAssembledDirectory(top)
         .addPath("/weld/mcandweld/ear/weldandmc");
      createMcLib(top, "/weld/mcandweld/mc/simple", SimpleBean.class);
      createWeldLib(top, "/weld/mcandweld/weld", SimpleWebBean.class);
View Full Code Here

      assertNoControllerContext("SimpleBean", null);
   }
  
   public void testMcInjectedByWeld() throws Exception
   {
      VirtualFile top = VFS.getChild("top-level.ear");
      createAssembledDirectory(top)
         .addPath("/weld/mcandweld/ear/weldandmc");
      createMcLib(top, "/weld/mcandweld/mc/fromweld", McBeanWithInjectedWeldBean.class);
      createWeldLib(top, "/weld/mcandweld/weld", SimpleWebBean.class);
View Full Code Here

      });
   }

   public void testWeldInjectedByMc() throws Exception
   {
      VirtualFile top = VFS.getChild("top-level.ear");
      createAssembledDirectory(top)
         .addPath("/weld/mcandweld/ear/weldandmc");
      createMcLib(top, "/weld/mcandweld/mc/simple", SimpleBean.class);
      createWeldLib(top, "/weld/mcandweld/weld", WeldBeanWithInjectedMcBean.class);
     
View Full Code Here

      });
   }

   public void testMcInjectedIntoWeldInjectedIntoMc() throws Exception
   {
      VirtualFile top = VFS.getChild("top-level.ear");
      createAssembledDirectory(top)
         .addPath("/weld/mcandweld/bidirectional");
      createMcLib(top, "/weld/mcandweld/bidirectional/mc/end", org.jboss.test.deployers.support.mcandweld.bidirectional.mcend.end.First.class);
      createWeldLib(top, "/weld/mcandweld/weld", org.jboss.test.deployers.support.mcandweld.bidirectional.mcend.middle.Middle.class);
     
View Full Code Here

      });
   }
  
   public void testWeldInjectedIntoMcInjectedIntoWeld() throws Exception
   {
      VirtualFile top = VFS.getChild("top-level.ear");
      createAssembledDirectory(top)
         .addPath("/weld/mcandweld/bidirectional");
      createMcLib(top, "/weld/mcandweld/bidirectional/mc/middle", org.jboss.test.deployers.support.mcandweld.bidirectional.mcmiddle.middle.Middle.class);
      createWeldLib(top, "/weld/mcandweld/weld", org.jboss.test.deployers.support.mcandweld.bidirectional.mcmiddle.end.First.class);
     
View Full Code Here

      });
   }
   public void testExternalMcBeanInjectedIntoWeld() throws Exception
   {
      VirtualFile mcEar = VFS.getChild("mc.ear");
      createAssembledDirectory(mcEar)
         .addPath("/weld/mcandweld/ear/mconly");
      createMcLib(mcEar, "/weld/mcandweld/mc/simple", SimpleBean.class);
      Deployment mc = deploy(mcEar);
     
      try
      {
         VirtualFile weldEar = VFS.getChild("weld.ear");
         createAssembledDirectory(weldEar)
            .addPath("/weld/mcandweld/ear/weldonly");
         createWeldLib(weldEar, "/weld/mcandweld/weld", WeldBeanWithInjectedMcBean.class);
        
         testBootstrap(weldEar, new RunSpecificTest()
View Full Code Here

      }
   }
  
   public void testNonExistantMcBeanInjectedIntoWeldFails() throws Exception
   {
      VirtualFile weldEar = VFS.getChild("weld.ear");
      createAssembledDirectory(weldEar)
         .addPath("/weld/mcandweld/ear/weldonly");
      createWeldLib(weldEar, "/weld/mcandweld/weld", WeldBeanWithInjectedMcBean.class);
     
      try
View Full Code Here

      }
   }
  
   public void testUndeployedMcBeanInjectedIntoWeldFails() throws Exception
   {
      VirtualFile mcEar = VFS.getChild("mc.ear");
      createAssembledDirectory(mcEar)
         .addPath("/weld/mcandweld/ear/mconly");
      createMcLib(mcEar, "/weld/mcandweld/mc/simple", SimpleBean.class);
      Deployment mc = deploy(mcEar);
      undeploy(mc);
     
      VirtualFile weldEar = VFS.getChild("weld.ear");
      createAssembledDirectory(weldEar)
         .addPath("/weld/mcandweld/ear/weldonly");
      createWeldLib(weldEar, "/weld/mcandweld/weld", WeldBeanWithInjectedMcBean.class);
     
      try
View Full Code Here

      }
   }

   public void testExternalMcBeanInjectedIntoWeldInitiallyNotPresentThenDeployed() throws Exception
   {
      VirtualFile weldEar = VFS.getChild("weld.ear");
      createAssembledDirectory(weldEar)
         .addPath("/weld/mcandweld/ear/weldonly");
      createWeldLib(weldEar, "/weld/mcandweld/weld", WeldBeanWithInjectedMcBean.class);
     
      try
      {
         testBootstrap(weldEar, null);
         fail("Weld deployment should not have worked without mc deployment");
      }
      catch(Exception expected)
      {
      }
     
      VirtualFile mcEar = VFS.getChild("mc.ear");
      createAssembledDirectory(mcEar)
         .addPath("/weld/mcandweld/ear/mconly");
      createMcLib(mcEar, "/weld/mcandweld/mc/simple", SimpleBean.class);
      Deployment mc = deploy(mcEar);
      try
View Full Code Here

TOP

Related Classes of org.jboss.vfs.VirtualFile

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.