Skip to content

Commit

Permalink
Update to Groovy 2.3.0
Browse files Browse the repository at this point in the history
* Make Servlet Filter test testable = false
  • Loading branch information
aslakknutsen committed Feb 25, 2015
1 parent 038b3a8 commit ee6f870
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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
Expand Up @@ -2,11 +2,13 @@ package org.javaee7.servlet.filters

import org.jboss.arquillian.container.test.api.Deployment
import org.jboss.arquillian.container.test.api.RunAsClient
import org.jboss.arquillian.container.test.api.Testable;
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
Expand All @@ -17,7 +19,7 @@ import javax.ws.rs.core.Response
@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 +29,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 +41,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

0 comments on commit ee6f870

Please sign in to comment.