Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<maven.test.skip>false</maven.test.skip>
<hamcrest.version>1.3</hamcrest.version>
<spock.version>0.7-groovy-2.0</spock.version>
<groovy.version>2.1.5</groovy.version>
<groovy.version>2.3.0</groovy.version>
<glassfish.version>4.0</glassfish.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
package org.javaee7.servlet.filters

import javax.ws.rs.client.Client
import javax.ws.rs.client.ClientBuilder
import javax.ws.rs.client.WebTarget
import javax.ws.rs.core.Response

import org.jboss.arquillian.container.test.api.Deployment
import org.jboss.arquillian.container.test.api.RunAsClient
import org.jboss.arquillian.spock.ArquillianSputnik
import org.jboss.arquillian.test.api.ArquillianResource
import org.jboss.shrinkwrap.api.ShrinkWrap
import org.jboss.shrinkwrap.api.spec.WebArchive
import org.junit.runner.RunWith
import spock.lang.Specification

import javax.ws.rs.client.Client
import javax.ws.rs.client.ClientBuilder
import javax.ws.rs.client.WebTarget
import javax.ws.rs.core.Response
import spock.lang.Specification

@RunWith(ArquillianSputnik)
class FilterServletSpecification extends Specification{

@Deployment
@Deployment(testable = false)
def static WebArchive "create deployment"() {
return ShrinkWrap.create(WebArchive.class)
.addClass(CharResponseWrapper.class)
Expand All @@ -27,7 +27,6 @@ class FilterServletSpecification extends Specification{
@ArquillianResource
private URL base;

@RunAsClient
def "standard servlet should return a simple text"() {
given:
Client client = ClientBuilder.newClient();
Expand All @@ -40,7 +39,6 @@ class FilterServletSpecification extends Specification{
response.readEntity(String.class) == "bar"
}

@RunAsClient
def "filtered servlet should return a enhanced foobar text"() {
given:
Client client = ClientBuilder.newClient();
Expand Down