Annotation Type OverProtocol
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface OverProtocol
Defines how Arquillian should communicate with and prepare the @Deploymentfor 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
-
-
Element Detail
-
value
String value
A String reference to the protocol name
-
-