Skip to content

Commit 6a6956d

Browse files
committed
all: pom reorganisation
1 parent 15e9019 commit 6a6956d

File tree

13 files changed

+250
-60
lines changed

13 files changed

+250
-60
lines changed

pom.xml

Lines changed: 20 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -53,54 +53,30 @@
5353
<type>pom</type>
5454
<scope>import</scope>
5555
</dependency>
56+
<dependency>
57+
<groupId>io.quarkiverse.cucumber</groupId>
58+
<artifactId>quarkus-cucumber</artifactId>
59+
<version>1.0.0</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>io.quarkiverse.quinoa</groupId>
63+
<artifactId>quarkus-quinoa</artifactId>
64+
<version>2.3.6</version>
65+
</dependency>
66+
<dependency>
67+
<groupId>com.tietoevry.quarkus</groupId>
68+
<artifactId>quarkus-resteasy-problem</artifactId>
69+
<version>3.9.0</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>org.zalando</groupId>
73+
<artifactId>problem</artifactId>
74+
<version>0.27.1</version>
75+
</dependency>
5676
</dependencies>
5777
</dependencyManagement>
5878

5979
<dependencies>
60-
<dependency>
61-
<groupId>io.quarkiverse.quinoa</groupId>
62-
<artifactId>quarkus-quinoa</artifactId>
63-
<version>2.3.6</version>
64-
</dependency>
65-
<dependency>
66-
<groupId>io.quarkus</groupId>
67-
<artifactId>quarkus-arc</artifactId>
68-
</dependency>
69-
<dependency>
70-
<groupId>io.quarkus</groupId>
71-
<artifactId>quarkus-rest</artifactId>
72-
</dependency>
73-
<dependency>
74-
<groupId>io.quarkus</groupId>
75-
<artifactId>quarkus-rest-jackson</artifactId>
76-
</dependency>
77-
<dependency>
78-
<groupId>io.quarkus</groupId>
79-
<artifactId>quarkus-rest-links</artifactId>
80-
</dependency>
81-
<dependency>
82-
<groupId>io.quarkus</groupId>
83-
<artifactId>quarkus-rest-client</artifactId>
84-
</dependency>
85-
<dependency>
86-
<groupId>io.quarkus</groupId>
87-
<artifactId>quarkus-smallrye-openapi</artifactId>
88-
</dependency>
89-
<dependency>
90-
<groupId>io.quarkus</groupId>
91-
<artifactId>quarkus-junit5</artifactId>
92-
<scope>test</scope>
93-
</dependency>
94-
<dependency>
95-
<groupId>io.quarkus</groupId>
96-
<artifactId>quarkus-junit5-mockito</artifactId>
97-
<scope>test</scope>
98-
</dependency>
99-
<dependency>
100-
<groupId>io.rest-assured</groupId>
101-
<artifactId>rest-assured</artifactId>
102-
<scope>test</scope>
103-
</dependency>
10480
<dependency>
10581
<groupId>org.assertj</groupId>
10682
<artifactId>assertj-core</artifactId>
@@ -111,16 +87,6 @@
11187
<artifactId>lombok</artifactId>
11288
<version>1.18.30</version>
11389
</dependency>
114-
<dependency>
115-
<groupId>com.tietoevry.quarkus</groupId>
116-
<artifactId>quarkus-resteasy-problem</artifactId>
117-
<version>3.9.0</version>
118-
</dependency>
119-
<dependency>
120-
<groupId>org.zalando</groupId>
121-
<artifactId>problem</artifactId>
122-
<version>0.27.1</version>
123-
</dependency>
12490
</dependencies>
12591

12692
<build>

pta-booking/doc/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi" : "3.0.3",
33
"info" : {
4-
"title" : "v API (test)",
4+
"title" : "Booking API",
55
"description" : "Booking API",
66
"termsOfService" : "Your terms here",
77
"contact" : {

pta-booking/doc/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
openapi: 3.0.3
33
info:
4-
title: v API (test)
4+
title: Booking API
55
description: Booking API
66
termsOfService: Your terms here
77
contact:

pta-booking/pom.xml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,61 @@
1515
<artifactId>pta-common</artifactId>
1616
<version>${common.module.version}</version>
1717
</dependency>
18+
<dependency>
19+
<groupId>io.quarkiverse.quinoa</groupId>
20+
<artifactId>quarkus-quinoa</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>io.quarkus</groupId>
24+
<artifactId>quarkus-arc</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>io.quarkus</groupId>
28+
<artifactId>quarkus-rest</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>io.quarkus</groupId>
32+
<artifactId>quarkus-rest-jackson</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>io.quarkus</groupId>
36+
<artifactId>quarkus-rest-links</artifactId>
37+
</dependency>
38+
<dependency>
39+
<groupId>io.quarkus</groupId>
40+
<artifactId>quarkus-rest-client</artifactId>
41+
</dependency>
42+
<dependency>
43+
<groupId>io.quarkus</groupId>
44+
<artifactId>quarkus-smallrye-openapi</artifactId>
45+
</dependency>
46+
<dependency>
47+
<groupId>com.tietoevry.quarkus</groupId>
48+
<artifactId>quarkus-resteasy-problem</artifactId>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.zalando</groupId>
52+
<artifactId>problem</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>io.quarkus</groupId>
56+
<artifactId>quarkus-junit5</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>io.quarkus</groupId>
61+
<artifactId>quarkus-junit5-mockito</artifactId>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>io.rest-assured</groupId>
66+
<artifactId>rest-assured</artifactId>
67+
<scope>test</scope>
68+
</dependency>
1869
<dependency>
1970
<groupId>io.quarkiverse.cucumber</groupId>
2071
<artifactId>quarkus-cucumber</artifactId>
21-
<version>1.0.0</version>
72+
<scope>test</scope>
2273
</dependency>
2374
</dependencies>
2475
</project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package ch.obya.pta.booking.config;
2+
3+
import ch.obya.pta.common.application.EventPublisher;
4+
import io.smallrye.mutiny.Uni;
5+
import jakarta.enterprise.context.ApplicationScoped;
6+
7+
public class BookingApplicationConfiguration {
8+
@ApplicationScoped
9+
EventPublisher eventPublisher() {
10+
return events -> Uni.createFrom().voidItem();
11+
}
12+
}

pta-booking/src/test/java/ch/obya/pta/booking/infrastructure/web/SessionResourceTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,18 @@
2727
import ch.obya.pta.booking.domain.util.Samples;
2828
import ch.obya.pta.booking.domain.vo.BookingId;
2929
import ch.obya.pta.booking.domain.vo.SessionId;
30+
import ch.obya.pta.common.application.EventPublisher;
31+
import ch.obya.pta.common.domain.event.Event;
3032
import ch.obya.pta.common.domain.util.CommonProblem;
3133
import io.quarkus.test.InjectMock;
34+
import io.quarkus.test.Mock;
3235
import io.quarkus.test.common.http.TestHTTPEndpoint;
3336
import io.quarkus.test.junit.QuarkusTest;
3437
import io.smallrye.mutiny.Uni;
38+
import jakarta.enterprise.context.ApplicationScoped;
3539
import org.junit.jupiter.api.Test;
3640

41+
import java.util.Collection;
3742
import java.util.Map;
3843

3944
import static ch.obya.pta.booking.domain.util.Samples.onePrivateSession;
@@ -49,6 +54,11 @@ public class SessionResourceTest {
4954
@InjectMock
5055
BookingService bookingService;
5156

57+
@Mock
58+
EventPublisher eventPublisher() {
59+
return events -> Uni.createFrom().voidItem();
60+
}
61+
5262
@Test
5363
void look_up_non_existing_session_resource_should_fail_with_404() {
5464
var session = SessionId.create();

pta-common/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
</parent>
1111
<artifactId>pta-common</artifactId>
1212
<version>${common.module.version}</version>
13+
<dependencies>
14+
<dependency>
15+
<groupId>io.smallrye.reactive</groupId>
16+
<artifactId>mutiny</artifactId>
17+
</dependency>
18+
<dependency>
19+
<groupId>io.quarkus</groupId>
20+
<artifactId>quarkus-junit5</artifactId>
21+
<scope>test</scope>
22+
</dependency>
23+
<dependency>
24+
<groupId>io.quarkus</groupId>
25+
<artifactId>quarkus-junit5-mockito</artifactId>
26+
<scope>test</scope>
27+
</dependency>
28+
</dependencies>
1329
<build>
1430
<plugins>
1531
<plugin>

pta-common/src/main/java/ch/obya/pta/common/infrastructure/messaging/RdbmsEventPublisher.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@
2626
import ch.obya.pta.common.application.EventPublisher;
2727
import ch.obya.pta.common.domain.event.Event;
2828
import io.smallrye.mutiny.Uni;
29-
import jakarta.enterprise.context.ApplicationScoped;
3029

3130
import java.util.Collection;
3231

33-
@ApplicationScoped
3432
public class RdbmsEventPublisher implements EventPublisher {
3533
@Override
3634
public Uni<Void> publish(Collection<Event> events) {

pta-customer/pom.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,61 @@
1919
<artifactId>libphonenumber</artifactId>
2020
<version>8.13.36</version>
2121
</dependency>
22+
<dependency>
23+
<groupId>io.quarkiverse.quinoa</groupId>
24+
<artifactId>quarkus-quinoa</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>io.quarkus</groupId>
28+
<artifactId>quarkus-arc</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>io.quarkus</groupId>
32+
<artifactId>quarkus-rest</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>io.quarkus</groupId>
36+
<artifactId>quarkus-rest-jackson</artifactId>
37+
</dependency>
38+
<dependency>
39+
<groupId>io.quarkus</groupId>
40+
<artifactId>quarkus-rest-links</artifactId>
41+
</dependency>
42+
<dependency>
43+
<groupId>io.quarkus</groupId>
44+
<artifactId>quarkus-rest-client</artifactId>
45+
</dependency>
46+
<dependency>
47+
<groupId>io.quarkus</groupId>
48+
<artifactId>quarkus-smallrye-openapi</artifactId>
49+
</dependency>
50+
<dependency>
51+
<groupId>com.tietoevry.quarkus</groupId>
52+
<artifactId>quarkus-resteasy-problem</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.zalando</groupId>
56+
<artifactId>problem</artifactId>
57+
</dependency>
58+
<dependency>
59+
<groupId>io.quarkus</groupId>
60+
<artifactId>quarkus-junit5</artifactId>
61+
<scope>test</scope>
62+
</dependency>
63+
<dependency>
64+
<groupId>io.quarkus</groupId>
65+
<artifactId>quarkus-junit5-mockito</artifactId>
66+
<scope>test</scope>
67+
</dependency>
68+
<dependency>
69+
<groupId>io.rest-assured</groupId>
70+
<artifactId>rest-assured</artifactId>
71+
<scope>test</scope>
72+
</dependency>
73+
<dependency>
74+
<groupId>io.quarkiverse.cucumber</groupId>
75+
<artifactId>quarkus-cucumber</artifactId>
76+
<scope>test</scope>
77+
</dependency>
2278
</dependencies>
2379
</project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package ch.obya.pta.customer.config;
2+
3+
import ch.obya.pta.common.application.EventPublisher;
4+
import io.smallrye.mutiny.Uni;
5+
import jakarta.enterprise.context.ApplicationScoped;
6+
7+
public class CustomerApplicationConfiguration {
8+
@ApplicationScoped
9+
EventPublisher eventPublisher() {
10+
return events -> Uni.createFrom().voidItem();
11+
}
12+
}

pta-customer/src/test/java/ch/obya/pta/customer/infrastructure/web/CustomerResourceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
import static io.restassured.RestAssured.given;
4646
import static java.time.format.DateTimeFormatter.ISO_LOCAL_DATE;
4747
import static org.assertj.core.api.Assertions.assertThat;
48-
import static org.hamcrest.Matchers.*;
48+
import static org.hamcrest.Matchers.equalTo;
49+
import static org.hamcrest.Matchers.is;
4950
import static org.mockito.ArgumentMatchers.any;
5051
import static org.mockito.ArgumentMatchers.eq;
5152
import static org.mockito.Mockito.*;

pta-shopping/pom.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,61 @@
1414
<artifactId>pta-common</artifactId>
1515
<version>${common.module.version}</version>
1616
</dependency>
17+
<dependency>
18+
<groupId>io.quarkiverse.quinoa</groupId>
19+
<artifactId>quarkus-quinoa</artifactId>
20+
</dependency>
21+
<dependency>
22+
<groupId>io.quarkus</groupId>
23+
<artifactId>quarkus-arc</artifactId>
24+
</dependency>
25+
<dependency>
26+
<groupId>io.quarkus</groupId>
27+
<artifactId>quarkus-rest</artifactId>
28+
</dependency>
29+
<dependency>
30+
<groupId>io.quarkus</groupId>
31+
<artifactId>quarkus-rest-jackson</artifactId>
32+
</dependency>
33+
<dependency>
34+
<groupId>io.quarkus</groupId>
35+
<artifactId>quarkus-rest-links</artifactId>
36+
</dependency>
37+
<dependency>
38+
<groupId>io.quarkus</groupId>
39+
<artifactId>quarkus-rest-client</artifactId>
40+
</dependency>
41+
<dependency>
42+
<groupId>io.quarkus</groupId>
43+
<artifactId>quarkus-smallrye-openapi</artifactId>
44+
</dependency>
45+
<dependency>
46+
<groupId>com.tietoevry.quarkus</groupId>
47+
<artifactId>quarkus-resteasy-problem</artifactId>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.zalando</groupId>
51+
<artifactId>problem</artifactId>
52+
</dependency>
53+
<dependency>
54+
<groupId>io.quarkus</groupId>
55+
<artifactId>quarkus-junit5</artifactId>
56+
<scope>test</scope>
57+
</dependency>
58+
<dependency>
59+
<groupId>io.quarkus</groupId>
60+
<artifactId>quarkus-junit5-mockito</artifactId>
61+
<scope>test</scope>
62+
</dependency>
63+
<dependency>
64+
<groupId>io.rest-assured</groupId>
65+
<artifactId>rest-assured</artifactId>
66+
<scope>test</scope>
67+
</dependency>
68+
<dependency>
69+
<groupId>io.quarkiverse.cucumber</groupId>
70+
<artifactId>quarkus-cucumber</artifactId>
71+
<scope>test</scope>
72+
</dependency>
1773
</dependencies>
1874
</project>

0 commit comments

Comments
 (0)