Skip to content

Commit f87043f

Browse files
committed
In hindsight this is tested with the nested class tests
1 parent 0cdf17a commit f87043f

File tree

4 files changed

+4
-68
lines changed

4 files changed

+4
-68
lines changed

tests/test-javalin-jsonb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<dependency>
8282
<groupId>io.avaje</groupId>
8383
<artifactId>avaje-jsonb-generator</artifactId>
84-
<version>1.2</version>
84+
<version>1.1</version>
8585
<scope>provided</scope>
8686
</dependency>
8787

tests/test-javalin-jsonb/src/main/java/org/example/myapp/web/test/Outer1.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/test-javalin-jsonb/src/main/java/org/example/myapp/web/test/Outer2.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/test-javalin-jsonb/src/main/java/org/example/myapp/web/test/TestController.java

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
import io.avaje.http.api.Form;
99
import io.avaje.http.api.Get;
1010
import io.avaje.http.api.Header;
11-
import io.avaje.http.api.MatrixParam;
1211
import io.avaje.http.api.MediaType;
1312
import io.avaje.http.api.Path;
1413
import io.avaje.http.api.Post;
1514
import io.avaje.http.api.Produces;
1615
import io.avaje.http.api.Put;
16+
import io.avaje.http.api.MatrixParam;
1717
import io.javalin.http.Context;
1818

1919
@Path("test/")
@@ -107,7 +107,7 @@ String testForm(String name, String email, String url) {
107107
String testFormBean(MyForm form) {
108108
return form.name + "|" + form.email + "|" + form.url;
109109
}
110-
110+
111111
@Get("/withMatrixParam/{type-1;category;vendor-34}/{range;style}")
112112
void neo(
113113
@MatrixParam("type-1") String type,
@@ -116,18 +116,6 @@ void neo(
116116
String range,
117117
String style) {
118118

119-
System.out.println("Ever have that feeling where you're not sure if you're awake or dreaming?");
120-
}
121-
122-
@Post("/outer1/state")
123-
List<Outer1.State> testInnerClass(Outer1.State state) {
124-
125-
return List.of(state);
126-
}
127-
128-
@Get("/outer2/state")
129-
Outer2.State testInnerClass2() {
130-
131-
return new Outer2.State();
119+
System.out.println("Ever have that feeling where you're not sure if you're awake or dreaming?");
132120
}
133121
}

0 commit comments

Comments
 (0)