/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/ |
D | VisibilityForSerializationTest.java | 95 .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 …]
|
D | TestInferredMutators.java | 5 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()
|
D | TestPropertyConflicts.java | 137 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()
|
D | TestAutoDetect.java | 184 .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()
|
D | BeanNamingTest.java | 23 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/ |
D | TestMixinMerging.java | 43 .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/ |
D | DeserializationConfigTest.java | 20 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()
|
D | SerConfigTest.java | 29 …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()
|
D | ConfigObjectsTest.java | 27 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/ |
D | MapperConfigBase.java | 32 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 …]
|
D | MapperConfig.java | 120 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/ |
D | TestConfig.java | 74 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()
|
D | TestJsonSerialize.java | 193 .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()
|
D | TestAnnotations.java | 241 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/ |
D | TestSetterlessProperties.java | 70 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()
|
D | TestBasicAnnotations.java | 193 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/ |
D | TestCreators3.java | 140 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/ |
D | TestDuplicateRegistration.java | 35 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/ |
D | TestBaseTypeAsDefault.java | 7 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/ |
D | TestObjectIdSerialization.java | 198 …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/ |
D | UnwrappedWithView1559Test.java | 28 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/ |
D | MapperFeature.java | 17 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/ |
D | BeanSerializerBuilder.java | 187 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/ |
D | BuilderWithTypeParametersTest.java | 7 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/ |
D | BeanDeserializerBuilder.java | 229 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()
|