|
3 | 3 | import java.util.Collections;
|
4 | 4 |
|
5 | 5 | import com.fasterxml.jackson.annotation.JsonInclude;
|
6 |
| -import com.fasterxml.jackson.core.JsonParser; |
| 6 | +import com.fasterxml.jackson.core.json.JsonReadFeature; |
7 | 7 | import com.fasterxml.jackson.databind.*;
|
8 | 8 | import com.fasterxml.jackson.databind.introspect.ClassIntrospector;
|
9 | 9 |
|
@@ -59,13 +59,13 @@ public void testBasicFeatures() throws Exception
|
59 | 59 | public void testParserFeatures() throws Exception
|
60 | 60 | {
|
61 | 61 | DeserializationConfig config = MAPPER.getDeserializationConfig();
|
62 |
| - assertNotSame(config, config.with(JsonParser.Feature.ALLOW_COMMENTS)); |
63 |
| - assertNotSame(config, config.withFeatures(JsonParser.Feature.ALLOW_COMMENTS, |
64 |
| - JsonParser.Feature.ALLOW_MISSING_VALUES)); |
| 62 | + assertNotSame(config, config.with(JsonReadFeature.ALLOW_JAVA_COMMENTS)); |
| 63 | + assertNotSame(config, config.withFeatures(JsonReadFeature.ALLOW_JAVA_COMMENTS, |
| 64 | + JsonReadFeature.ALLOW_MISSING_VALUES)); |
65 | 65 |
|
66 |
| - assertNotSame(config, config.without(JsonParser.Feature.ALLOW_COMMENTS)); |
67 |
| - assertNotSame(config, config.withoutFeatures(JsonParser.Feature.ALLOW_COMMENTS, |
68 |
| - JsonParser.Feature.ALLOW_MISSING_VALUES)); |
| 66 | + assertNotSame(config, config.without(JsonReadFeature.ALLOW_JAVA_COMMENTS)); |
| 67 | + assertNotSame(config, config.withoutFeatures(JsonReadFeature.ALLOW_JAVA_COMMENTS, |
| 68 | + JsonReadFeature.ALLOW_MISSING_VALUES)); |
69 | 69 | }
|
70 | 70 |
|
71 | 71 | public void testFormatFeatures() throws Exception
|
|
0 commit comments