Examples of onlyOne()


Examples of org.jboss.arquillian.spi.ServiceLoader.onlyOne()

    * @see org.jboss.arquillian.spi.event.suite.EventHandler#callback(org.jboss.arquillian.spi.Context, java.lang.Object)
    */
   public void callback(Context context, ClassEvent event) throws Exception
   {
      ServiceLoader serviceLoader = context.getServiceLoader();
      DeploymentPackager packager = serviceLoader.onlyOne(DeploymentPackager.class);
     
      DeploymentGenerator generator = context.get(DeploymentGenerator.class);
      Validate.stateNotNull(generator, "No " + DeploymentGenerator.class.getName() + " found in context");
     
      TestDeployment deployment = generator.generate(event.getTestClass());
View Full Code Here

Examples of org.jboss.arquillian.spi.ServiceLoader.onlyOne()

         controller = new InContainerContainer();
         deployer = new InContainerContainer();
      }
      else
      {
         DeployableContainer container = serviceLoader.onlyOne(DeployableContainer.class);
         // TODO: lookup controller / deployer from configuration
         controller = new ContainerController(container);
         deployer = new ContainerDeployer(container);
      }
View Full Code Here

Examples of org.jboss.arquillian.spi.ServiceLoader.onlyOne()

      }
      else if(reg.getContainers().size() == 0)
      {
         try
         {
            DeployableContainer<?> deployableContainer = serviceLoader.onlyOne(DeployableContainer.class);
            if(deployableContainer != null)
            {
               reg.create(new ContainerDefImpl("arquillian.xml").setContainerName("default"), serviceLoader);
            }
         }
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.