Skip to content

Commit

Permalink
Closes #46
Browse files Browse the repository at this point in the history
  • Loading branch information
rrighi committed Feb 28, 2019
1 parent a9dd131 commit 0da9e85
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 24 deletions.
11 changes: 9 additions & 2 deletions client-reactor/pom.xml
@@ -1,4 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -55,13 +57,18 @@
</dependency>

<!-- Test -->

<dependency>
<groupId>com.holon-platform.core</groupId>
<artifactId>holon-test</artifactId>
<version>${holon.core.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
Expand Down
Expand Up @@ -18,6 +18,7 @@
import static com.holonplatform.core.property.PathProperty.create;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.IOException;
Expand Down Expand Up @@ -66,7 +67,6 @@
import com.holonplatform.jaxrs.client.reactor.JaxrsReactiveRestClient;
import com.holonplatform.reactor.http.ReactiveRestClient;
import com.holonplatform.test.JerseyTest5;
import com.holonplatform.test.TestUtils;

public class TestReactiveJaxrsClient extends JerseyTest5 {

Expand Down Expand Up @@ -439,7 +439,7 @@ public void testErrors() {
assertEquals("ERR000", error.getCode());
}).block();

TestUtils.expectedException(UnsuccessfulResponseException.class, () -> {
assertThrows(UnsuccessfulResponseException.class, () -> {
client.request().path("test").path("data2/{id}").resolve("id", -1).getForEntity(TestData.class).block();
});

Expand Down
11 changes: 9 additions & 2 deletions client/pom.xml
@@ -1,4 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -55,12 +57,17 @@
</dependency>

<!-- Test -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.holon-platform.core</groupId>
<artifactId>holon-test</artifactId>
Expand Down
Expand Up @@ -18,6 +18,7 @@
import static com.holonplatform.core.property.PathProperty.create;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.IOException;
Expand Down Expand Up @@ -71,7 +72,6 @@
import com.holonplatform.jaxrs.client.test.TestJaxrsClient.ApiError;
import com.holonplatform.jaxrs.client.test.TestJaxrsClient.TestData;
import com.holonplatform.test.JerseyTest5;
import com.holonplatform.test.TestUtils;

public class TestAsyncJaxrsClient extends JerseyTest5 {

Expand Down Expand Up @@ -442,7 +442,7 @@ public void testErrors() {
assertEquals("ERR000", error.getCode());
}).toCompletableFuture().join();

TestUtils.expectedException(CompletionException.class, () -> {
assertThrows(CompletionException.class, () -> {
client.request().path("test").path("data2/{id}").resolve("id", -1).getForEntity(TestData.class)
.toCompletableFuture().join();
});
Expand Down
Expand Up @@ -18,6 +18,7 @@
import static com.holonplatform.core.property.PathProperty.create;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.IOException;
Expand Down Expand Up @@ -63,7 +64,6 @@
import com.holonplatform.http.rest.RestClient;
import com.holonplatform.jaxrs.client.JaxrsRestClient;
import com.holonplatform.test.JerseyTest5;
import com.holonplatform.test.TestUtils;

public class TestJaxrsClient extends JerseyTest5 {

Expand Down Expand Up @@ -372,7 +372,7 @@ public void testErrors() {
assertNotNull(error);
assertEquals("ERR000", error.getCode());

TestUtils.expectedException(UnsuccessfulResponseException.class, () -> {
assertThrows(UnsuccessfulResponseException.class, () -> {
client.request().path("test").path("data2/{id}").resolve("id", -1).getForEntity(TestData.class)
.orElse(null);
});
Expand Down
5 changes: 5 additions & 0 deletions commons/pom.xml
Expand Up @@ -55,6 +55,11 @@
<version>${holon.core.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.test-framework.providers</groupId>
Expand Down
16 changes: 6 additions & 10 deletions pom.xml
@@ -1,4 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -58,13 +60,13 @@
<bintray.package>holon-jaxrs</bintray.package>

<!-- Holon core -->
<holon.core.version>5.2.0</holon.core.version>
<holon.core.version>5.2.1</holon.core.version>

<!-- Holon json -->
<holon.json.version>5.2.0</holon.json.version>
<holon.json.version>5.2.1</holon.json.version>

<!-- Holon reactor -->
<holon.reactor.version>5.2.0</holon.reactor.version>
<holon.reactor.version>5.2.1</holon.reactor.version>

<!-- JAX-RS API -->
<jax-rs.api.version>2.1</jax-rs.api.version>
Expand Down Expand Up @@ -129,12 +131,6 @@
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<!-- Logback for tests -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
11 changes: 9 additions & 2 deletions server/pom.xml
@@ -1,4 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -80,13 +82,18 @@
<version>${holon.core.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.holon-platform.core</groupId>
<artifactId>holon-test</artifactId>
<version>${holon.core.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
Expand Down
10 changes: 8 additions & 2 deletions spring-security/pom.xml
@@ -1,4 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -76,7 +78,11 @@
<version>${holon.core.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
Expand Down

0 comments on commit 0da9e85

Please sign in to comment.