Skip to content

Commit c84a45c

Browse files
committed
build: make some json tests to run on Jackson3 module
1 parent b8ee921 commit c84a45c

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

tests/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
<artifactId>jooby-jackson</artifactId>
3737
<version>${jooby.version}</version>
3838
</dependency>
39+
<dependency>
40+
<groupId>io.jooby</groupId>
41+
<artifactId>jooby-jackson3</artifactId>
42+
<version>${jooby.version}</version>
43+
</dependency>
3944
<dependency>
4045
<groupId>io.jooby</groupId>
4146
<artifactId>jooby-gson</artifactId>

tests/src/test/java/io/jooby/test/FeaturedTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import io.jooby.handler.TraceHandler;
6868
import io.jooby.handler.WebVariables;
6969
import io.jooby.jackson.JacksonModule;
70+
import io.jooby.jackson3.Jackson3Module;
7071
import io.jooby.junit.ServerTest;
7172
import io.jooby.junit.ServerTestRunner;
7273
import io.jooby.netty.NettyServer;
@@ -912,7 +913,7 @@ public void decoder(ServerTestRunner runner) {
912913
runner
913914
.define(
914915
app -> {
915-
app.install(new JacksonModule());
916+
app.install(new Jackson3Module());
916917

917918
app.post("/map", ctx -> ctx.body(Map.class));
918919

@@ -971,7 +972,7 @@ public void jsonVsRawOutput(ServerTestRunner runner) {
971972
runner
972973
.define(
973974
app -> {
974-
app.install(new JacksonModule());
975+
app.install(new Jackson3Module());
975976

976977
app.path(
977978
"/api/pets",
@@ -1211,7 +1212,7 @@ public void errorHandler(ServerTestRunner runner) {
12111212
runner
12121213
.define(
12131214
app -> {
1214-
app.install(new JacksonModule());
1215+
app.install(new Jackson3Module());
12151216

12161217
app.get(
12171218
"/",

0 commit comments

Comments
 (0)