Package org.jboss.arquillian.container.test.impl.domain

Examples of org.jboss.arquillian.container.test.impl.domain.ProtocolRegistry


   public void execute(@Observes RemoteExecutionEvent event) throws Exception
   {
      Container container = this.container.get();
      DeploymentDescription deployment = this.deployment.get();
     
      ProtocolRegistry protoReg = protocolRegistry.get();

      // if no default marked or specific protocol defined in the registry, use the DeployableContainers defaultProtocol.
      ProtocolDefinition protocol = protoReg.getProtocol(deployment.getProtocol());
      if(protocol == null)
      {
         protocol = protoReg.getProtocol(container.getDeployableContainer().getDefaultProtocol());
      }
   
      ProtocolConfiguration protocolConfiguration;
     
      if(container.hasProtocolConfiguration(protocol.getProtocolDescription()))
View Full Code Here


            throw new ValidationException(
                  DeploymentScenario.class.getSimpleName() + " contains targets not maching any defined Container in the registry. " + target.getName());
         }
      }
     
     ProtocolRegistry proReg = protocolRegistry.get();
     for(ProtocolDescription proDesc : scenario.protocols())
     {
        if(ProtocolDescription.DEFAULT.equals(proDesc))
        {
           continue;
        }
        ProtocolDefinition protocol = proReg.getProtocol(proDesc);
        if(protocol == null)
        {
           throw new ValidationException(
                 DeploymentScenario.class.getSimpleName() + " contains protcols not maching any defined Protocol in the registry. " + proDesc.getName());
        }
View Full Code Here

   /**
    * @param scenario
    */
   private void createTestableDeployments(DeploymentScenario scenario, TestClass testCase)
   {
      ProtocolRegistry protoReg = protocolRegistry.get();
      buildTestableDeployments(scenario, testCase, protoReg);
   }
View Full Code Here

                  "your have defined a @" + org.jboss.arquillian.container.test.api.Deployment.class.getName() + " with a @" + TargetsContainer.class.getName() +
                  " value that does not maching any found/configured Containers (see arquillian.xml container@qualifier) ");
         }
      }
     
     ProtocolRegistry proReg = protocolRegistry.get();
     for(ProtocolDescription proDesc : scenario.protocols())
     {
        if(ProtocolDescription.DEFAULT.equals(proDesc))
        {
           continue;
        }
        ProtocolDefinition protocol = proReg.getProtocol(proDesc);
        if(protocol == null)
        {
           throw new ValidationException(
                 DeploymentScenario.class.getSimpleName() + " contains protcols not maching any defined Protocol in the registry. " + proDesc.getName());
        }
View Full Code Here

   /**
    * @param scenario
    */
   private void createTestableDeployments(DeploymentScenario scenario, TestClass testCase)
   {
      ProtocolRegistry protoReg = protocolRegistry.get();
      buildTestableDeployments(scenario, testCase, protoReg);
   }
View Full Code Here

         {
            // TODO: add printout of found protocols
            throw new IllegalStateException("Defined default protocol " + defaultProtcolDef.getType() + " can not be found on classpath");
         }
      }
      ProtocolRegistry registry = new ProtocolRegistry();
      for(Protocol<?> protocol : protocols)
      {
         if(defaultProtocol != null && protocol.equals(defaultProtocol))
         {
            registry.addProtocol(new ProtocolDefinition(protocol, defaultProtcolDef.getProperties(), true));  
         }
         else
         {
            registry.addProtocol(new ProtocolDefinition(protocol));           
         }
      }
      registryInstance.set(registry);
   }
View Full Code Here

                  "your have defined a @" + org.jboss.arquillian.container.test.api.Deployment.class.getName() + " with a @" + TargetsContainer.class.getName() +
                  " value that does not maching any found/configured Containers (see arquillian.xml container@qualifier) ");
         }
      }
     
     ProtocolRegistry proReg = protocolRegistry.get();
     for(ProtocolDescription proDesc : scenario.protocols())
     {
        if(ProtocolDescription.DEFAULT.equals(proDesc))
        {
           continue;
        }
        ProtocolDefinition protocol = proReg.getProtocol(proDesc);
        if(protocol == null)
        {
           throw new ValidationException(
                 DeploymentScenario.class.getSimpleName() + " contains protcols not maching any defined Protocol in the registry. " + proDesc.getName());
        }
View Full Code Here

   /**
    * @param scenario
    */
   private void createTestableDeployments(DeploymentScenario scenario, TestClass testCase)
   {
      ProtocolRegistry protoReg = protocolRegistry.get();
      buildTestableDeployments(scenario, testCase, protoReg);
   }
View Full Code Here

                  "your have defined a @" + org.jboss.arquillian.container.test.api.Deployment.class.getName() + " with a @" + TargetsContainer.class.getName() +
                  " value that does not match any found/configured Containers (see arquillian.xml container@qualifier) ");
         }
      }
     
     ProtocolRegistry proReg = protocolRegistry.get();
     for(ProtocolDescription proDesc : scenario.protocols())
     {
        if(ProtocolDescription.DEFAULT.equals(proDesc))
        {
           continue;
        }
        ProtocolDefinition protocol = proReg.getProtocol(proDesc);
        if(protocol == null)
        {
           throw new ValidationException(
                 DeploymentScenario.class.getSimpleName() + " contains protocols not maching any defined Protocol in the registry. " + proDesc.getName());
        }
View Full Code Here

   /**
    * @param scenario
    */
   private void createTestableDeployments(DeploymentScenario scenario, TestClass testCase)
   {
      ProtocolRegistry protoReg = protocolRegistry.get();
      buildTestableDeployments(scenario, testCase, protoReg);
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.container.test.impl.domain.ProtocolRegistry

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.