We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bec2f0 commit 526f11dCopy full SHA for 526f11d
src/test/java/com/fasterxml/jackson/failing/ObjectIdSubTypes4607Test.java
@@ -31,10 +31,7 @@ static class NumberTypeDefinition implements TypeDefinition {
31
@Test
32
public void shouldHandleTypeDefinitionJson() throws Exception {
33
final ObjectMapper mapper = newJsonMapper();
34
- String input = "{" +
35
- " \"@type\": \"number\" " +
36
- " }";
37
- TypeDefinition model = mapper.readValue(input, TypeDefinition.class);
+ TypeDefinition model = mapper.readValue("{ \"@type\": \"number\" }", TypeDefinition.class);
38
Assertions.assertInstanceOf(NumberTypeDefinition.class, model);
39
}
40
0 commit comments