Package org.jboss.arquillian.impl.domain

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


      Mockito.when(serviceLoader.all(Protocol.class)).thenReturn(Arrays.asList((Protocol)protocol));
     
     
      manager.fire(createDescriptor());
     
      ProtocolRegistry registry = manager.resolve(ProtocolRegistry.class);
      ProtocolDefinition registeredProtocol = registry.getProtocol(new ProtocolDescription(protocolName));
      Assert.assertNotNull(
            "Verify " + Protocol.class.getSimpleName() + " was registered",
            registeredProtocol);
     
      Assert.assertEquals(
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

   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

         {
            // 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)
      {
         injector.get().inject(protocol); // TODO: should be moved to ServiceRegistry, during Service creation
         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

            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.getProtocols())
     {
        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

TOP

Related Classes of org.jboss.arquillian.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.