Skip to content

Commit ff33bb1

Browse files
committed
Merge pull request #152 from aslakknutsen/gf_jaxrs_neo
Change to use Client.target(URI) to be compatible with JAX-RS 1.0
2 parents d61d229 + 2303ac0 commit ff33bb1

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

jaxrs/server-negotiation/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

11-
<groupId>org.javaee7.jaxrs</groupId>
1211
<artifactId>server-negotiation</artifactId>
13-
<version>1.0-SNAPSHOT</version>
1412
<packaging>war</packaging>
1513
</project>

jaxrs/server-negotiation/src/test/java/org/javaee7/jaxrs/server/negotiation/MyResourceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import java.io.IOException;
1010
import java.net.MalformedURLException;
11+
import java.net.URI;
1112
import java.net.URL;
1213

1314
import javax.ws.rs.client.Client;
@@ -48,7 +49,7 @@ public static WebArchive createDeployment() {
4849
@Before
4950
public void setUp() throws MalformedURLException {
5051
Client client = ClientBuilder.newClient();
51-
target = client.target(new URL(base, "webresources/persons").toExternalForm());
52+
target = client.target(URI.create(new URL(base, "webresources/persons").toExternalForm()));
5253
}
5354

5455
@Test

pom.xml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@
243243
<id>glassfish-remote-arquillian</id>
244244
<dependencies>
245245
<dependency>
246-
<groupId>org.glassfish</groupId>
247-
<artifactId>javax.json</artifactId>
248-
<version>1.0.4</version>
249-
<scope>test</scope>
250-
</dependency>
251-
<dependency>
246+
<groupId>org.glassfish</groupId>
247+
<artifactId>javax.json</artifactId>
248+
<version>1.0.4</version>
249+
<scope>test</scope>
250+
</dependency>
251+
<dependency>
252252
<groupId>org.glassfish.tyrus</groupId>
253253
<artifactId>tyrus-client</artifactId>
254254
<version>1.3</version>
@@ -266,6 +266,18 @@
266266
<version>2.4</version>
267267
<scope>test</scope>
268268
</dependency>
269+
<dependency>
270+
<groupId>org.glassfish.jersey.media</groupId>
271+
<artifactId>jersey-media-json-jackson</artifactId>
272+
<version>2.4</version>
273+
<scope>test</scope>
274+
</dependency>
275+
<dependency>
276+
<groupId>org.glassfish.jersey.media</groupId>
277+
<artifactId>jersey-media-json-processing</artifactId>
278+
<version>2.4</version>
279+
<scope>test</scope>
280+
</dependency>
269281
<dependency>
270282
<groupId>org.jboss.arquillian.container</groupId>
271283
<artifactId>arquillian-glassfish-remote-3.1</artifactId>

0 commit comments

Comments
 (0)