Package org.jboss.test.deployers.vfs.deployer.nonmetadata.support

Examples of org.jboss.test.deployers.vfs.deployer.nonmetadata.support.MockBshDeployer


   public void testBshNonMetadataDeploy() throws Throwable
   {
      MainDeployerImpl main = new MainDeployerImpl();
      main.setStructuralDeployers(createStructuralDeployers());
      addStructureDeployer(main, new JARStructure());
      MockBshDeployer bshDeployer = new MockBshDeployer();
      FileStructure fileStructure = new FileStructure();
      fileStructure.addFileMatcher(bshDeployer);
      addStructureDeployer(main, fileStructure);
      DeployersImpl deployers = new DeployersImpl(new AbstractController());
      deployers.setMgtObjectCreator(new DefaultManagedObjectCreator());
      deployers.addDeployer(bshDeployer);
      main.setDeployers(deployers);
      VFSDeployment deployment = createDeployment("/nonmetadata", "nmd.jar");
      main.deploy(deployment);
      assertNotNull(bshDeployer.getScipts());
      assertEquals(1, bshDeployer.getScipts().size());
      BshScript script = bshDeployer.getScipts().iterator().next();
      assertNotNull(script);
      assertNotNull(script.getProperties());
      assertEquals("root", script.getName());
   }
View Full Code Here


      TestXmlDeployer xmlDeployer = new TestXmlDeployer();
      xmlDeployer.create();

      Map<AbstractVFSParsingDeployer<?>, Class<? extends Exception>> map = new HashMap<AbstractVFSParsingDeployer<?>, Class<? extends Exception>>();
      map.put(new Properties2BeansDeployer(), IOException.class);
      map.put(new MockBshDeployer(), IOException.class);
      map.put(xmlDeployer, RuntimeException.class);
      map.put(new SchemaResolverDeployer<Object>(Object.class), JBossXBException.class);

      VirtualFile root = new MyVirtualFile();
      AbstractVFSDeploymentContext context = new MyVFSDeploymentContext(root, "");
View Full Code Here

TOP

Related Classes of org.jboss.test.deployers.vfs.deployer.nonmetadata.support.MockBshDeployer

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.