Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jul 3, 2024
1 parent 1bec2f0 commit 526f11d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ static class NumberTypeDefinition implements TypeDefinition {
@Test
public void shouldHandleTypeDefinitionJson() throws Exception {
final ObjectMapper mapper = newJsonMapper();
String input = "{" +
" \"@type\": \"number\" " +
" }";
TypeDefinition model = mapper.readValue(input, TypeDefinition.class);
TypeDefinition model = mapper.readValue("{ \"@type\": \"number\" }", TypeDefinition.class);
Assertions.assertInstanceOf(NumberTypeDefinition.class, model);
}
}
Expand Down

0 comments on commit 526f11d

Please sign in to comment.