Skip to content

Commit 9e5c55e

Browse files
committed
bump test dependencies
1 parent 84be556 commit 9e5c55e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

client/pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,37 +34,37 @@
3434
<!-- test dependencies -->
3535

3636
<dependency>
37-
<groupId>org.avaje.composite</groupId>
37+
<groupId>io.avaje</groupId>
3838
<artifactId>junit</artifactId>
39-
<version>5.0</version>
39+
<version>1.0</version>
4040
<scope>test</scope>
4141
</dependency>
4242

4343
<dependency>
4444
<groupId>io.javalin</groupId>
4545
<artifactId>javalin</artifactId>
46-
<version>3.9.1</version>
46+
<version>4.1.1</version>
4747
<scope>test</scope>
4848
</dependency>
4949

5050
<dependency>
5151
<groupId>io.avaje</groupId>
5252
<artifactId>avaje-inject</artifactId>
53-
<version>4.1</version>
53+
<version>6.12</version>
5454
<scope>test</scope>
5555
</dependency>
5656

5757
<dependency>
5858
<groupId>io.avaje</groupId>
5959
<artifactId>avaje-http-api</artifactId>
60-
<version>1.9</version>
60+
<version>1.12</version>
6161
<scope>test</scope>
6262
</dependency>
6363

6464
<dependency>
6565
<groupId>io.avaje</groupId>
6666
<artifactId>avaje-http-hibernate-validator</artifactId>
67-
<version>2.0</version>
67+
<version>2.6</version>
6868
<scope>test</scope>
6969
</dependency>
7070

@@ -80,7 +80,7 @@
8080
<dependency>
8181
<groupId>io.avaje</groupId>
8282
<artifactId>avaje-inject-generator</artifactId>
83-
<version>4.1</version>
83+
<version>6.12</version>
8484
<scope>test</scope>
8585
</dependency>
8686

client/src/test/java/org/example/webserver/HelloController$Route.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import static io.avaje.http.api.PathTypeConversion.asLocalDate;
1313
import static io.avaje.http.api.PathTypeConversion.toLocalDate;
1414

15-
@Singleton
15+
//@Singleton
1616
public class HelloController$Route implements WebRoutes {
1717

1818
private final HelloController controller;
@@ -47,15 +47,15 @@ public void registerRoutes() {
4747
controller.stream(ctx);
4848
});
4949

50-
ApiBuilder.get("/hello/:id/:date", ctx -> {
50+
ApiBuilder.get("/hello/{id}/{date}", ctx -> {
5151
ctx.status(200);
5252
int id = asInt(ctx.pathParam("id"));
5353
LocalDate date = asLocalDate(ctx.pathParam("date"));
5454
String otherParam = ctx.queryParam("otherParam");
5555
ctx.json(controller.hello(id, date, otherParam));
5656
});
5757

58-
ApiBuilder.get("/hello/findbyname/:name", ctx -> {
58+
ApiBuilder.get("/hello/findbyname/{name}", ctx -> {
5959
ctx.status(200);
6060
String name = ctx.pathParam("name");
6161
String otherParam = ctx.queryParam("otherParam");
@@ -69,7 +69,7 @@ public void registerRoutes() {
6969
ctx.json(controller.post(dto));
7070
});
7171

72-
ApiBuilder.post("/hello/savebean/:foo", ctx -> {
72+
ApiBuilder.post("/hello/savebean/{foo}", ctx -> {
7373
ctx.status(201);
7474
String foo = ctx.pathParam("foo");
7575
HelloDto dto = ctx.bodyAsClass(HelloDto.class);
@@ -116,13 +116,13 @@ public void registerRoutes() {
116116
ctx.json(controller.getAll());
117117
});
118118

119-
ApiBuilder.delete("/hello/:id", ctx -> {
119+
ApiBuilder.delete("/hello/{id}", ctx -> {
120120
ctx.status(204);
121121
int id = asInt(ctx.pathParam("id"));
122122
controller.deleteById(id);
123123
});
124124

125-
ApiBuilder.get("/hello/withMatrix/:year_segment/:other", ctx -> {
125+
ApiBuilder.get("/hello/withMatrix/{year_segment}/{other}", ctx -> {
126126
ctx.status(200);
127127
PathSegment year_segment = PathSegment.of(ctx.pathParam("year_segment"));
128128
int year = asInt(year_segment.val());

client/src/test/java/org/example/webserver/HelloController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
//@Hidden
2222
@Valid
23-
@Controller
23+
//@Controller
2424
@Path("/hello")
2525
class HelloController {
2626

0 commit comments

Comments
 (0)