Skip to content

Commit

Permalink
Add dependencies to client
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyllarr committed Oct 15, 2023
1 parent ad45d18 commit f7022b4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
22 changes: 20 additions & 2 deletions resteasy-client-integration/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<packaging>jar</packaging>

<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.wildfly-client-all>29.0.1.Final</version.wildfly-client-all>
Expand Down Expand Up @@ -39,19 +41,35 @@
</dependency>
<dependency>
<groupId>org.wildfly.security.jakarta</groupId>
<artifactId>jakarta-client-webservices</artifactId>
<artifactId>jakarta-client-resteasy</artifactId>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-client-all</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${version.junit}</version>
<version>${version.junit}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>2.0.1</version>
</dependency>

</dependencies>

</project>
3 changes: 1 addition & 2 deletions resteasy-client-integration/client/src/test/java/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public class Client {

@Test
public void test() {
((ResteasyClientBuilder)ClientBuilder.newBuilder()).hostnameVerifier(NoopHostnameVerifier.INSTANCE);
ResteasyClient sslClient = (ResteasyClient) ResteasyClientBuilder.newClient();
ResteasyClient sslClient = ((ResteasyClientBuilder)ClientBuilder.newBuilder()).hostnameVerifier(NoopHostnameVerifier.INSTANCE).build();
Response response = sslClient.target("https://127.0.0.1:8443/resteasy-client-integration-example/rest/hello").request().get();
Assert.assertNotNull(response);
Assert.assertEquals(response.getStatus(), 200);
Expand Down

0 comments on commit f7022b4

Please sign in to comment.