org.jboss.arquillian.container.test.api
Annotation Type OverProtocol


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface OverProtocol

Defines how Arquillian should communicate with and prepare the @Deployment for in container testing.

Arquillian will use what the container has defined as it's default protocol unless you specify other wise. You can override this behavior by using @OverProtocol on the @Deployment method.

Usage Example:


 @Deployment @OverProtocol("MyCustomProtocol")
 public static WebArchive create() {
      return ShrinkWrap.create(WebArchive.class);
 }
 
You can also override the default behavior on a global level using arquillian.xml. This will apply to all containers and all deployments in your test suite.

Usage Example:


 <?xml version="1.0" encoding="UTF-8"?>
 <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns="http://jboss.org/schema/arquillian"
   xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

      <defaultProtocol type="Servlet 3.0" />
 </arquillian>
 

Version:
$Revision: $
Author:
Aslak Knutsen

Required Element Summary
 String value
          A String reference to the protocol name
 

Element Detail

value

public abstract String value
A String reference to the protocol name

Returns:


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.