Skip to content

Commit

Permalink
Merge pull request #292 from aslakknutsen/groovy
Browse files Browse the repository at this point in the history
Update to Groovy 2.3.0
  • Loading branch information
arun-gupta committed Apr 21, 2015
2 parents 41c735e + 9a6f119 commit 969f1c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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
@@ -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

0 comments on commit 969f1c9

Please sign in to comment.