Home
last modified time | relevance | path

Searched refs:objectMapper (Results 1 – 25 of 82) sorted by relevance

1234

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/
DPolymorphicWithObjectId1551Test.java45 ObjectMapper objectMapper = new ObjectMapper(); in testWithAbstractUsingProp() local
46 String serialized = objectMapper.writer() in testWithAbstractUsingProp()
50 …VehicleOwnerViaProp[] deserialized = objectMapper.readValue(serialized, VehicleOwnerViaProp[].clas… in testWithAbstractUsingProp()
66 ObjectMapper objectMapper = new ObjectMapper(); in testFailingAbstractUsingProp() local
68 objectMapper.writer() in testFailingAbstractUsingProp()
83 objectMapper.readValue(JSON, VehicleOwnerBroken[].class); in testFailingAbstractUsingProp()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DNodeContext2049Test.java134 private ObjectMapper objectMapper; field in NodeContext2049Test
136 objectMapper = new ObjectMapper();
137 objectMapper.registerModule(new com.fasterxml.jackson.databind.Module() { in objectMapper.registerModule()
168 Parent obj = objectMapper.readerFor(Parent.class).readValue(JSON); in testReadNoBuffering()
176 JsonNode tree = objectMapper.readTree(JSON); in testReadFromTree()
177 Parent obj = objectMapper.reader().forType(Parent.class).readValue(tree); in testReadFromTree()
DTestJsonPointer.java11 final JsonNode SAMPLE_ROOT = objectMapper().readTree(SAMPLE_DOC_JSON_SPEC); in testIt()
40 JsonNode root = objectMapper().readTree("{\"123\" : 456}"); in testLongNumbers()
45 root = objectMapper().readTree("{\"35361706045\" : 1234}"); in testLongNumbers()
DArrayNodeTest.java100 JsonNodeFactory f = objectMapper().getNodeFactory(); in testDirectCreation2()
132 JsonNode n = objectMapper().readTree(JSON); in testArrayViaMapper()
169 JsonNodeFactory f = objectMapper().getNodeFactory(); in testNullAdds()
209 JsonNodeFactory f = objectMapper().getNodeFactory(); in testNullInserts()
306 ArrayNode result = objectMapper().createArrayNode(); in testSimpleArray()
338 ArrayNode array2 = objectMapper().createArrayNode(); in testSimpleArray()
357 ObjectMapper mapper = objectMapper(); in testSimpleMismatch()
DTreeFromIncompleteJsonTest.java11 final private ObjectMapper MAPPER = objectMapper(); // shared is fine
DTreeReadViaMapperTest.java17 private final ObjectMapper MAPPER = objectMapper();
144 final ObjectMapper mapper = objectMapper(); in testMultiple()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/mixins/
DTestMixinSerWithViews.java164 ObjectMapper objectMapper = createObjectMapper(); in testDataBindingUsage() local
165 …ObjectWriter objectWriter = objectMapper.writerWithView(Views.View.class).withDefaultPrettyPrinter… in testDataBindingUsage()
194 ObjectMapper objectMapper = jsonMapperBuilder() in createObjectMapper() local
204 objectMapper.setMixIns(sourceMixins); in createObjectMapper()
205 return objectMapper; in createObjectMapper()
DTestMixinDeserForCreators.java147 ObjectMapper objectMapper = new ObjectMapper(); in testFactoryPropertyMixin() local
148 objectMapper.addMixIn(Pair2020.class, MyPairMixIn8.class); in testFactoryPropertyMixin()
151 Pair2020 pair2 = objectMapper.readValue(doc, Pair2020.class); in testFactoryPropertyMixin()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/
DNestedTypes1604Test.java92 private final ObjectMapper objectMapper = newJsonMapper(); field in NestedTypes1604Test
105 String json = objectMapper.writeValueAsString(badOuter); in testIssue1604Simple()
116 String json = objectMapper.writeValueAsString(badOuter); in testIssue1604Subtype()
127 String json = objectMapper.writeValueAsString(badOuter); in testIssue1604Sneaky()
DRecursiveTypeTest.java94 TypeFactory tf = objectMapper().getTypeFactory(); in testJavaTypeToString()
108 TypeFactory tf = objectMapper().getTypeFactory(); in testSuperClassWithReferencedJavaType()
DTestTypeFactoryWithRecursiveTypes.java29 String serialized = objectMapper().writeValueAsString(sub); in testBasePropertiesIncludedWhenSerializingSubWhenSubTypeLoadedAfterBaseType()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestRootType.java81 ObjectMapper mapper = objectMapper(); in testSuperClass()
103 ObjectMapper mapper = objectMapper(); in testSuperInterface()
133 ObjectMapper mapper = objectMapper(); in testIncompatibleRootType()
156 ObjectMapper mapper = objectMapper(); in testJackson398()
189 ObjectMapper mapper = objectMapper(); in testIssue456WrapperPart()
DBeanSerializerModifier1612Test.java56 ObjectMapper objectMapper = new ObjectMapper() in testIssue1612() local
59 objectMapper.writeValueAsString(new Bean1612(0, 1, 2d)); in testIssue1612()
DTestCustomSerializers.java198 ObjectMapper objectMapper = new ObjectMapper(); in testCustomization() local
199 objectMapper.addMixIn(Element.class, ElementMixin.class); in testCustomization()
202 objectMapper.writeValue(sw, element); in testCustomization()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/seq/
DTestInnerClassReaderFor.java35 objectMapper().readerForUpdating(x).readValue("{\"value\": \"updatedX\"}"); in testReaderFor()
39 objectMapper().readerForUpdating(y).readValue("{\"value\": \"updatedY\"}"); in testReaderFor()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/
DTestNameConflicts.java87 private final ObjectMapper MAPPER = objectMapper();
112 final ObjectMapper mapper = objectMapper(); in testOverrideName()
DSetterConflictTest.java24 private final ObjectMapper MAPPER = objectMapper();
DBeanDescriptionTest.java8 private final ObjectMapper MAPPER = objectMapper();
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/
DTestIgnoredTypes.java69 final ObjectMapper mapper = objectMapper(); in testIgnoredType()
105 final ObjectMapper mapper = objectMapper(); in testIgnoreUsingConfigOverride()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DTestCreatorNullValue.java106 ObjectMapper objectMapper = new ObjectMapper(); in testCreatorReturningNull() local
109 objectMapper.readValue(json, JsonEntity.class); in testCreatorReturningNull()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectMapperTest.java201 ObjectMapper objectMapper = new ObjectMapper().copy(); in testCopyOfSubtypeResolver2785() local
202 objectMapper.registerSubtypes(Impl2785.class); in testCopyOfSubtypeResolver2785()
203 Object result = objectMapper.readValue("{ \"packetType\": \"myType\" }", Base2785.class); in testCopyOfSubtypeResolver2785()
444 ObjectMapper objectMapper = newJsonMapper(); in testRegisterDependentModules() local
472 objectMapper.registerModule(firstModule); in testRegisterDependentModules()
476 objectMapper.getRegisteredModuleIds() in testRegisterDependentModules()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/
DIgnorePropertyOnDeserTest.java151 ObjectMapper objectMapper = new ObjectMapper(); in testIgnoreUnknownOnField() local
153 MyPojoValue value = objectMapper.readValue(json, MyPojoValue.class); in testIgnoreUnknownOnField()
DIgnoreCreatorProp1317Test.java44 ObjectMapper om = objectMapper(); in testThatJsonIgnoreWorksWithConstructorProperties()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/dos/
DHugeIntegerCoerceTest.java19 private final ObjectMapper MAPPER = objectMapper(); // shared is fine
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/
DMapInclusion1649Test.java27 final private ObjectMapper MAPPER = objectMapper();

1234