Skip to content

Commit

Permalink
Add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber committed Dec 31, 2023
1 parent f946fc8 commit 7e6a84d
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ public void testSingleNoNamingStrategy() {
);

@SuppressWarnings("serial")
ObjectMapper mapper = new ObjectMapper()
.registerModule(new ProtobufModule());
ObjectMapper mapper = new ObjectMapper().registerModule(new ProtobufModule());

JsonNode tree = toTree(mapper, message);

Expand Down Expand Up @@ -235,8 +234,7 @@ public void testMultipleNoNamingStrategy() {
);

@SuppressWarnings("serial")
ObjectMapper mapper = new ObjectMapper()
.registerModule(new ProtobufModule());
ObjectMapper mapper = new ObjectMapper().registerModule(new ProtobufModule());

JsonNode tree = toTree(mapper, messages);

Expand All @@ -254,7 +252,6 @@ public void testMultipleNoNamingStrategy() {
}
}


@Test
public void testMultipleStillCamelCaseUsingNamingBase() {
List<PropertyNamingCamelCased> messages = ProtobufCreator.create(
Expand Down

0 comments on commit 7e6a84d

Please sign in to comment.