11package org.javaee7.servlet.filters
22
3+ import javax.ws.rs.client.Client
4+ import javax.ws.rs.client.ClientBuilder
5+ import javax.ws.rs.client.WebTarget
6+ import javax.ws.rs.core.Response
7+
38import org.jboss.arquillian.container.test.api.Deployment
4- import org.jboss.arquillian.container.test.api.RunAsClient
59import org.jboss.arquillian.spock.ArquillianSputnik
610import org.jboss.arquillian.test.api.ArquillianResource
711import org.jboss.shrinkwrap.api.ShrinkWrap
812import org.jboss.shrinkwrap.api.spec.WebArchive
913import org.junit.runner.RunWith
10- import spock.lang.Specification
1114
12- import javax.ws.rs.client.Client
13- import javax.ws.rs.client.ClientBuilder
14- import javax.ws.rs.client.WebTarget
15- import javax.ws.rs.core.Response
15+ import spock.lang.Specification
1616
1717@RunWith (ArquillianSputnik )
1818class FilterServletSpecification extends Specification {
1919
20- @Deployment
20+ @Deployment ( testable = false )
2121 def static WebArchive " create deployment" () {
2222 return ShrinkWrap . create(WebArchive . class)
2323 .addClass(CharResponseWrapper . class)
@@ -27,7 +27,6 @@ class FilterServletSpecification extends Specification{
2727 @ArquillianResource
2828 private URL base;
2929
30- @RunAsClient
3130 def " standard servlet should return a simple text" () {
3231 given :
3332 Client client = ClientBuilder . newClient();
@@ -40,7 +39,6 @@ class FilterServletSpecification extends Specification{
4039 response. readEntity(String . class) == " bar"
4140 }
4241
43- @RunAsClient
4442 def " filtered servlet should return a enhanced foobar text" () {
4543 given :
4644 Client client = ClientBuilder . newClient();
0 commit comments