Skip to content

Commit 712baa0

Browse files
committed
Update test dependencies
1 parent 9d1110d commit 712baa0

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

client/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,21 @@
5050
<dependency>
5151
<groupId>io.avaje</groupId>
5252
<artifactId>avaje-inject</artifactId>
53-
<version>3.0</version>
53+
<version>4.1</version>
5454
<scope>test</scope>
5555
</dependency>
5656

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

6464
<dependency>
6565
<groupId>io.avaje</groupId>
6666
<artifactId>avaje-http-hibernate-validator</artifactId>
67-
<version>1.0</version>
67+
<version>2.0</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>3.0</version>
83+
<version>4.1</version>
8484
<scope>test</scope>
8585
</dependency>
8686

client/src/test/java/io/avaje/http/client/HelloControllerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void postForm() {
8989
.formParam("name", "Bazz")
9090
.formParam("email", "user@foo.com")
9191
.formParam("url", "http://foo.com")
92-
.formParam("startDate", "2020-12-03")
92+
.formParam("startDate", "2030-12-03")
9393
.post()
9494
.asDiscarding();
9595

@@ -104,7 +104,7 @@ void postForm_returningBean() {
104104
.formParam("name", "Bazz")
105105
.formParam("email", "user@foo.com")
106106
.formParam("url", "http://foo.com")
107-
.formParam("startDate", "2020-12-03")
107+
.formParam("startDate", "2030-12-03")
108108
.post()
109109
.asDiscarding();
110110

@@ -115,7 +115,7 @@ void postForm_returningBean() {
115115
.formParam("name", "Bax")
116116
.formParam("email", "Bax@foo.com")
117117
.formParam("url", "http://foo.com")
118-
.formParam("startDate", "2020-12-03")
118+
.formParam("startDate", "2030-12-03")
119119
.post()
120120
.bean(HelloDto.class);
121121

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import io.avaje.http.api.WebRoutes;
66
import io.javalin.apibuilder.ApiBuilder;
77

8-
import javax.inject.Singleton;
8+
import jakarta.inject.Singleton;
99
import java.time.LocalDate;
1010

1111
import static io.avaje.http.api.PathTypeConversion.asInt;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ String getPlainMessage() {
4343
* @return The Hello DTO given the id and name.
4444
* @deprecated Please migrate away
4545
*/
46-
@Get("/:id/:date")
46+
@Get("/{id}/{date}")
4747
HelloDto hello(int id, LocalDate date, String otherParam) {
4848
return new HelloDto(id, date.toString(), otherParam);
4949
}
@@ -55,7 +55,7 @@ HelloDto hello(int id, LocalDate date, String otherParam) {
5555
* @param otherParam My option parameter
5656
* @return The Hellos that we found.
5757
*/
58-
@Get("/findbyname/:name")
58+
@Get("/findbyname/{name}")
5959
List<HelloDto> findByName(String name, String otherParam) {
6060
return new ArrayList<>();
6161
}
@@ -76,7 +76,7 @@ HelloDto post(HelloDto dto) {
7676
* @param dto The hello body as json
7777
*/
7878
// @Roles({ADMIN})
79-
@Post("/savebean/:foo")
79+
@Post("/savebean/{foo}")
8080
void saveBean(String foo, HelloDto dto, Context context) {
8181
// save hello data ...
8282
System.out.println("save " + foo + " dto:" + dto);
@@ -113,13 +113,13 @@ List<HelloDto> getAll() {
113113
}
114114

115115
// @Hidden
116-
@Delete(":id")
116+
@Delete("{id}")
117117
void deleteById(int id) {
118118
System.out.println("deleting " + id);
119119
}
120120

121121
@Produces("text/plain")
122-
@Get("/withMatrix/:year;author;country/:other")
122+
@Get("/withMatrix/{year};author;country/{other}")
123123
String getWithMatrixParam(int year, String author, String country, String other, String extra) {
124124
return "yr:" + year + " au:" + author + " co:" + country + " other:" + other + " extra:" + extra;
125125
}

0 commit comments

Comments
 (0)