/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/ |
D | PolymorphicWithObjectId1551Test.java | 45 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/ |
D | NodeContext2049Test.java | 134 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()
|
D | TestJsonPointer.java | 11 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()
|
D | ArrayNodeTest.java | 100 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()
|
D | TreeFromIncompleteJsonTest.java | 11 final private ObjectMapper MAPPER = objectMapper(); // shared is fine
|
D | TreeReadViaMapperTest.java | 17 private final ObjectMapper MAPPER = objectMapper(); 144 final ObjectMapper mapper = objectMapper(); in testMultiple()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/mixins/ |
D | TestMixinSerWithViews.java | 164 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()
|
D | TestMixinDeserForCreators.java | 147 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/ |
D | NestedTypes1604Test.java | 92 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()
|
D | RecursiveTypeTest.java | 94 TypeFactory tf = objectMapper().getTypeFactory(); in testJavaTypeToString() 108 TypeFactory tf = objectMapper().getTypeFactory(); in testSuperClassWithReferencedJavaType()
|
D | TestTypeFactoryWithRecursiveTypes.java | 29 String serialized = objectMapper().writeValueAsString(sub); in testBasePropertiesIncludedWhenSerializingSubWhenSubTypeLoadedAfterBaseType()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/ |
D | TestRootType.java | 81 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()
|
D | BeanSerializerModifier1612Test.java | 56 ObjectMapper objectMapper = new ObjectMapper() in testIssue1612() local 59 objectMapper.writeValueAsString(new Bean1612(0, 1, 2d)); in testIssue1612()
|
D | TestCustomSerializers.java | 198 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/ |
D | TestInnerClassReaderFor.java | 35 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/ |
D | TestNameConflicts.java | 87 private final ObjectMapper MAPPER = objectMapper(); 112 final ObjectMapper mapper = objectMapper(); in testOverrideName()
|
D | SetterConflictTest.java | 24 private final ObjectMapper MAPPER = objectMapper();
|
D | BeanDescriptionTest.java | 8 private final ObjectMapper MAPPER = objectMapper();
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/ |
D | TestIgnoredTypes.java | 69 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/ |
D | TestCreatorNullValue.java | 106 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/ |
D | ObjectMapperTest.java | 201 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/ |
D | IgnorePropertyOnDeserTest.java | 151 ObjectMapper objectMapper = new ObjectMapper(); in testIgnoreUnknownOnField() local 153 MyPojoValue value = objectMapper.readValue(json, MyPojoValue.class); in testIgnoreUnknownOnField()
|
D | IgnoreCreatorProp1317Test.java | 44 ObjectMapper om = objectMapper(); in testThatJsonIgnoreWorksWithConstructorProperties()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/dos/ |
D | HugeIntegerCoerceTest.java | 19 private final ObjectMapper MAPPER = objectMapper(); // shared is fine
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/ |
D | MapInclusion1649Test.java | 27 final private ObjectMapper MAPPER = objectMapper();
|