@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface OverProtocol
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>
public abstract String value
Copyright © 2017 JBoss by Red Hat. All rights reserved.