Package org.jboss.arquillian.spi.client.protocol.metadata

Examples of org.jboss.arquillian.spi.client.protocol.metadata.ProtocolMetaData


    * @see org.jboss.arquillian.testenricher.arquillian.ResourceProvider#lookup(java.lang.reflect.Field, org.jboss.arquillian.api.ArquillianResource)
    */
   @Override
   public Object lookup(ArquillianResource resource)
   {
      ProtocolMetaData metaData = protocolMetadata.get();
      if(metaData == null)
      {
         return null;
      }
      if(metaData.hasContext(HTTPContext.class))
      {
         HTTPContext context = metaData.getContext(HTTPContext.class);
         if(resource.value() != null && resource.value() != ArquillianResource.class)
         {
            // TODO: we need to check for class. Not all containers have ServletClass available.
            Servlet servlet = context.getServletByName(resource.value().getSimpleName());
            if( servlet == null)
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spi.client.protocol.metadata.ProtocolMetaData

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.