Home
last modified time | relevance | path

Searched refs:MapperFeature (Results 1 – 25 of 116) sorted by relevance

12345

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/
DVisibilityForSerializationTest.java95 .configure(MapperFeature.AUTO_DETECT_GETTERS, false) in testGlobalAutoDetection()
112 .configure(MapperFeature.AUTO_DETECT_GETTERS, true) in testPerClassAutoDetection()
124 .configure(MapperFeature.AUTO_DETECT_GETTERS, true) in testPerClassAutoDetectionForIsGetter()
125 .configure(MapperFeature.AUTO_DETECT_IS_GETTERS, false) in testPerClassAutoDetectionForIsGetter()
136 assertTrue(m.isEnabled(MapperFeature.AUTO_DETECT_SETTERS)); in testConfigChainability()
137 assertTrue(m.isEnabled(MapperFeature.AUTO_DETECT_GETTERS)); in testConfigChainability()
139 .configure(MapperFeature.AUTO_DETECT_SETTERS, false) in testConfigChainability()
140 .configure(MapperFeature.AUTO_DETECT_GETTERS, false) in testConfigChainability()
142 assertFalse(m.isEnabled(MapperFeature.AUTO_DETECT_SETTERS)); in testConfigChainability()
143 assertFalse(m.isEnabled(MapperFeature.AUTO_DETECT_GETTERS)); in testConfigChainability()
[all …]
DTestInferredMutators.java5 import com.fasterxml.jackson.databind.MapperFeature;
35 assertTrue(mapper.isEnabled(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS)); in testFinalFieldIgnoral()
37 .disable(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS) in testFinalFieldIgnoral()
53 assertTrue(mapper.isEnabled(MapperFeature.INFER_PROPERTY_MUTATORS)); in testDeserializationInference()
59 .disable(MapperFeature.INFER_PROPERTY_MUTATORS) in testDeserializationInference()
DTestPropertyConflicts.java137 MapperFeature.AUTO_DETECT_CREATORS, in testIssue541()
138 MapperFeature.AUTO_DETECT_FIELDS, in testIssue541()
139 MapperFeature.AUTO_DETECT_GETTERS, in testIssue541()
140 MapperFeature.AUTO_DETECT_IS_GETTERS, in testIssue541()
141 MapperFeature.AUTO_DETECT_SETTERS, in testIssue541()
142 MapperFeature.USE_GETTERS_AS_SETTERS in testIssue541()
DTestAutoDetect.java184 .disable(MapperFeature.AUTO_DETECT_SETTERS) in testDisablingAll()
185 .disable(MapperFeature.AUTO_DETECT_FIELDS) in testDisablingAll()
186 .disable(MapperFeature.AUTO_DETECT_GETTERS) in testDisablingAll()
187 .disable(MapperFeature.AUTO_DETECT_CREATORS) in testDisablingAll()
188 .disable(MapperFeature.AUTO_DETECT_IS_GETTERS) in testDisablingAll()
DBeanNamingTest.java23 assertFalse(mapper.isEnabled(MapperFeature.USE_STD_BEAN_NAMING)); in testSimple()
30 .enable(MapperFeature.USE_STD_BEAN_NAMING) in testSimple()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/mixins/
DTestMixinMerging.java43 .disable(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS) in testDisappearingMixins515()
44 .disable(MapperFeature.AUTO_DETECT_FIELDS) in testDisappearingMixins515()
45 .disable(MapperFeature.AUTO_DETECT_GETTERS) in testDisappearingMixins515()
46 .disable(MapperFeature.AUTO_DETECT_IS_GETTERS) in testDisappearingMixins515()
47 .disable(MapperFeature.INFER_PROPERTY_MUTATORS) in testDisappearingMixins515()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/cfg/
DDeserializationConfigTest.java20 assertTrue(cfg.isEnabled(MapperFeature.USE_ANNOTATIONS)); in testFeatureDefaults()
21 assertTrue(cfg.isEnabled(MapperFeature.AUTO_DETECT_SETTERS)); in testFeatureDefaults()
22 assertTrue(cfg.isEnabled(MapperFeature.AUTO_DETECT_CREATORS)); in testFeatureDefaults()
23 assertTrue(cfg.isEnabled(MapperFeature.USE_GETTERS_AS_SETTERS)); in testFeatureDefaults()
24 assertTrue(cfg.isEnabled(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS)); in testFeatureDefaults()
47 …DeserializationConfig newConfig = config.with(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, tr… in testBasicFeatures()
52 assertSame(config, config.with(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)); in testBasicFeatures()
53 assertNotSame(config, config.with(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, false)); in testBasicFeatures()
DSerConfigTest.java29 …SerializationConfig newConfig = config.with(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true… in testSerConfig()
32 assertSame(config, config.with(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)); in testSerConfig()
33 assertNotSame(config, config.with(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, false)); in testSerConfig()
DConfigObjectsTest.java27 assertFalse(MapperFeature.AUTO_DETECT_FIELDS.enabledIn(0)); in testMics()
28 assertTrue(MapperFeature.AUTO_DETECT_FIELDS.enabledIn(-1)); in testMics()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DMapperConfigBase.java32 private final static int DEFAULT_MAPPER_FEATURES = collectFeatureDefaults(MapperFeature.class);
38 MapperFeature.AUTO_DETECT_FIELDS.getMask()
39 | MapperFeature.AUTO_DETECT_GETTERS.getMask()
40 | MapperFeature.AUTO_DETECT_IS_GETTERS.getMask()
41 | MapperFeature.AUTO_DETECT_SETTERS.getMask()
42 | MapperFeature.AUTO_DETECT_CREATORS.getMask()
290 public final T with(MapperFeature... features) in with()
293 for (MapperFeature f : features) { in with()
308 public final T without(MapperFeature... features) in without()
311 for (MapperFeature f : features) { in without()
[all …]
DMapperConfig.java120 public abstract T with(MapperFeature... features); in with()
126 public abstract T without(MapperFeature... features); in without()
131 public abstract T with(MapperFeature feature, boolean state); in with()
143 public final boolean isEnabled(MapperFeature f) { in isEnabled()
164 return isEnabled(MapperFeature.USE_ANNOTATIONS); in isAnnotationProcessingEnabled()
179 return isEnabled(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS); in canOverrideAccessModifiers()
187 return isEnabled(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY); in shouldSortPropertiesAlphabetically()
239 if (isEnabled(MapperFeature.USE_ANNOTATIONS)) { in getAnnotationIntrospector()
286 if (isEnabled(MapperFeature.BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES)) { in getPolymorphicTypeValidator()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestConfig.java74 assertTrue(cfg.isEnabled(MapperFeature.USE_ANNOTATIONS)); in testDefaults()
75 assertTrue(cfg.isEnabled(MapperFeature.AUTO_DETECT_GETTERS)); in testDefaults()
76 assertTrue(cfg.isEnabled(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS)); in testDefaults()
81 assertFalse(cfg.isEnabled(MapperFeature.USE_STATIC_TYPING)); in testDefaults()
84 assertTrue(cfg.isEnabled(MapperFeature.AUTO_DETECT_IS_GETTERS)); in testDefaults()
89 assertTrue(cfg.isEnabled(MapperFeature.DEFAULT_VIEW_INCLUSION)); in testDefaults()
123 assertTrue(MAPPER.isEnabled(MapperFeature.USE_ANNOTATIONS)); in testAnnotationsDisabled()
128 .configure(MapperFeature.USE_ANNOTATIONS, false) in testAnnotationsDisabled()
192 .disable(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS) in testNoAccessOverrides()
DTestJsonSerialize.java193 .configure(MapperFeature.USE_STATIC_TYPING, true) in testStaticTypingWithMap()
203 .configure(MapperFeature.USE_STATIC_TYPING, true) in testStaticTypingWithArrayList()
213 .configure(MapperFeature.USE_STATIC_TYPING, true) in testStaticTypingWithLinkedList()
223 .configure(MapperFeature.USE_STATIC_TYPING, true) in testStaticTypingWithArray()
231 …JsonMapper mapper = JsonMapper.builder().enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY).buil… in testIssue294()
DTestAnnotations.java241 assertFalse(m.isEnabled(MapperFeature.REQUIRE_SETTERS_FOR_GETTERS)); in testGettersWithoutSetters()
248 .enable(MapperFeature.REQUIRE_SETTERS_FOR_GETTERS) in testGettersWithoutSetters()
257 .enable(MapperFeature.REQUIRE_SETTERS_FOR_GETTERS) in testGettersWithoutSettersOverride()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/
DTestSetterlessProperties.java70 assertTrue(m.isEnabled(MapperFeature.USE_GETTERS_AS_SETTERS)); in testSimpleSetterlessCollectionFailure()
72 .configure(MapperFeature.USE_GETTERS_AS_SETTERS, false) in testSimpleSetterlessCollectionFailure()
74 assertFalse(m.isEnabled(MapperFeature.USE_GETTERS_AS_SETTERS)); in testSimpleSetterlessCollectionFailure()
104 .configure(MapperFeature.USE_GETTERS_AS_SETTERS, false) in testSimpleSetterlessMapFailure()
122 .configure(MapperFeature.USE_GETTERS_AS_SETTERS, true) in testSetterlessPrecedence()
DTestBasicAnnotations.java193 assertTrue(MAPPER.getDeserializationConfig().isEnabled(MapperFeature.USE_ANNOTATIONS)); in testAnnotationsDisabled()
199 .configure(MapperFeature.USE_ANNOTATIONS, false) in testAnnotationsDisabled()
212 .configure(MapperFeature.USE_ANNOTATIONS, false) in testEnumsWhenDisabled()
221 .disable(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS) in testNoAccessOverrides()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DTestCreators3.java140 MapperFeature.AUTO_DETECT_CREATORS, in testCreator541()
141 MapperFeature.AUTO_DETECT_FIELDS, in testCreator541()
142 MapperFeature.AUTO_DETECT_GETTERS, in testCreator541()
143 MapperFeature.AUTO_DETECT_IS_GETTERS, in testCreator541()
144 MapperFeature.AUTO_DETECT_SETTERS, in testCreator541()
145 MapperFeature.USE_GETTERS_AS_SETTERS) in testCreator541()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/module/
DTestDuplicateRegistration.java35 assertTrue(mapper.isEnabled(MapperFeature.IGNORE_DUPLICATE_MODULE_REGISTRATIONS)); in testDuplicateRegistration()
43 mapper.disable(MapperFeature.IGNORE_DUPLICATE_MODULE_REGISTRATIONS); in testDuplicateRegistration()
51 .disable(MapperFeature.IGNORE_DUPLICATE_MODULE_REGISTRATIONS) in testDuplicateRegistration()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DTestBaseTypeAsDefault.java7 import com.fasterxml.jackson.databind.MapperFeature;
41 .enable(MapperFeature.USE_BASE_TYPE_AS_DEFAULT_IMPL)
45 .disable(MapperFeature.USE_BASE_TYPE_AS_DEFAULT_IMPL)
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/
DTestObjectIdSerialization.java198 …JsonMapper mapper = JsonMapper.builder().enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY).buil… in testSimpleSerializationClass()
216 …JsonMapper mapper = JsonMapper.builder().enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY).buil… in testSimpleSerializationProperty()
273 …JsonMapper mapper = JsonMapper.builder().enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY).bui… in testCustomPropertyForClass()
289 …JsonMapper mapper = JsonMapper.builder().enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY).buil… in testCustomPropertyViaProperty()
309 …JsonMapper mapper = JsonMapper.builder().enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY).buil… in testAlwaysIdForTree()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/struct/
DUnwrappedWithView1559Test.java28 String json = jsonMapperBuilder().configure(MapperFeature.DEFAULT_VIEW_INCLUSION, false) in testCanSerializeSimpleWithDefaultView()
33 json = jsonMapperBuilder().configure(MapperFeature.DEFAULT_VIEW_INCLUSION, true) in testCanSerializeSimpleWithDefaultView()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DMapperFeature.java17 public enum MapperFeature implements ConfigFeature enum
557 private MapperFeature(boolean defaultState) { in MapperFeature() method in MapperFeature
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/
DBeanSerializerBuilder.java187 if (_config.isEnabled(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS)) { in build()
188 … _typeId.fixAccess(_config.isEnabled(MapperFeature.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); in build()
206 if (_config.isEnabled(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS)) { in build()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/
DBuilderWithTypeParametersTest.java7 import com.fasterxml.jackson.databind.MapperFeature;
92 .enable(MapperFeature.INFER_BUILDER_TYPE_BINDINGS) in testWithBuilderInferringBindings()
105 .disable(MapperFeature.INFER_BUILDER_TYPE_BINDINGS) in testWithBuilderWithoutInferringBindings()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DBeanDeserializerBuilder.java229 member.fixAccess(_config.isEnabled(MapperFeature.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); in addInjectable()
382 boolean anyViews = !_config.isEnabled(MapperFeature.DEFAULT_VIEW_INCLUSION); in build()
456 boolean anyViews = !_config.isEnabled(MapperFeature.DEFAULT_VIEW_INCLUSION); in buildBuilderBased()
544 … _buildMethod.fixAccess(_config.isEnabled(MapperFeature.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); in _fixAccess()
577 return (B == null) ? _config.isEnabled(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES) in _findCaseInsensitivity()

12345