/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | ObjectReaderValueOfWithValueTypeTest.java | 30 private final POJO pojo = new POJO(); field in ObjectReaderValueOfWithValueTypeTest 43 when(objectReader.readValue((String) any())).thenReturn(pojo); in testValueOfStringWithValueType() 50 assertEquals(result, pojo); in testValueOfStringWithValueType() 59 when(objectReader.readValue((byte[]) any())).thenReturn(pojo); in testValueOfByteArrayWithValueType() 65 assertEquals(result, pojo); in testValueOfByteArrayWithValueType() 73 when(objectReader.readValue((DataInput) any())).thenReturn(pojo); in testValueOfDataInputWithValueType() 79 assertEquals(result, pojo); in testValueOfDataInputWithValueType() 87 when(objectReader.readValue((File) any())).thenReturn(pojo); in testValueOfFileWithValueType() 93 assertEquals(result, pojo); in testValueOfFileWithValueType() 101 when(objectReader.readValue((InputStream) any())).thenReturn(pojo); in testValueOfInputStreamWithValueType() [all …]
|
D | ObjectReaderTest.java | 325 POJO pojo = MAPPER.treeToValue(node, POJO.class); in testNoPointerLoading() local 326 assertTrue(pojo.name.containsKey("value")); in testNoPointerLoading() 327 assertEquals(1234, pojo.name.get("value")); in testNoPointerLoading() 335 POJO pojo = reader.readValue(source); in testPointerLoading() local 336 assertTrue(pojo.name.containsKey("value")); in testPointerLoading() 337 assertEquals(1234, pojo.name.get("value")); in testPointerLoading() 357 POJO pojo = itr.next(); in testPointerLoadingMappingIteratorOne() local 359 assertTrue(pojo.name.containsKey("value")); in testPointerLoadingMappingIteratorOne() 360 assertEquals(1234, pojo.name.get("value")); in testPointerLoadingMappingIteratorOne() 372 POJO pojo = itr.next(); in testPointerLoadingMappingIteratorMany() local [all …]
|
D | MapperViaParserTest.java | 139 Pojo pojo = p.readValueAs(Pojo.class); in testPojoReadingFailing() local 140 fail("Expected an exception: got "+pojo); in testPojoReadingFailing()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/ |
D | NullConversionsViaCreator2458Test.java | 40 Pojo pojo = MAPPER_WITH_AS_EMPTY.readValue("{}", Pojo.class); in testMissingToEmptyViaCreator() local 41 assertNotNull(pojo); in testMissingToEmptyViaCreator() 42 assertNotNull(pojo.value()); in testMissingToEmptyViaCreator() 43 assertEquals(0, pojo.value().size()); in testMissingToEmptyViaCreator() 48 Pojo pojo = MAPPER_WITH_AS_EMPTY.readValue("{\"value\":null}", Pojo.class); in testNullToEmptyViaCreator() local 49 assertNotNull(pojo); in testNullToEmptyViaCreator() 50 assertNotNull(pojo.value()); in testNullToEmptyViaCreator() 51 assertEquals(0, pojo.value().size()); in testNullToEmptyViaCreator()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/interop/ |
D | TestFormatDetection.java | 31 POJO pojo = detecting.readValue(utf8Bytes("{\"x\":1}")); in testSimpleWithJSON() local 32 assertNotNull(pojo); in testSimpleWithJSON() 33 assertEquals(1, pojo.x); in testSimpleWithJSON() 44 POJO pojo = it.nextValue(); in testSequenceWithJSON() local 45 assertEquals(1, pojo.x); in testSequenceWithJSON() 48 pojo = it.nextValue(); in testSequenceWithJSON() 49 assertEquals(2, pojo.x); in testSequenceWithJSON() 50 assertEquals(5, pojo.y); in testSequenceWithJSON()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/ |
D | ObjectIdWithBuilder1496Test.java | 42 POJO pojo = cache.get(id); in readFromCacheOrBuild() local 43 if (pojo == null) { in readFromCacheOrBuild() 45 pojo = cache.putIfAbsent(id, newPojo); in readFromCacheOrBuild() 46 if (pojo == null) { in readFromCacheOrBuild() 47 pojo = newPojo; in readFromCacheOrBuild() 50 return pojo; in readFromCacheOrBuild()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/ |
D | AnnotatedMethod.java | 111 public final Object callOn(Object pojo) throws Exception { in callOn() argument 112 return _method.invoke(pojo, (Object[]) null); in callOn() 115 public final Object callOnWith(Object pojo, Object... args) throws Exception { in callOnWith() argument 116 return _method.invoke(pojo, args); in callOnWith() 163 public void setValue(Object pojo, Object value) throws IllegalArgumentException in setValue() argument 166 _method.invoke(pojo, value); in setValue() 174 public Object getValue(Object pojo) throws IllegalArgumentException in getValue() argument 177 return _method.invoke(pojo, (Object[]) null); in getValue()
|
D | AnnotatedField.java | 96 public void setValue(Object pojo, Object value) throws IllegalArgumentException in setValue() argument 99 _field.set(pojo, value); in setValue() 107 public Object getValue(Object pojo) throws IllegalArgumentException in getValue() argument 110 return _field.get(pojo); in getValue()
|
D | VirtualAnnotatedMember.java | 86 public void setValue(Object pojo, Object value) throws IllegalArgumentException { in setValue() argument 91 public Object getValue(Object pojo) throws IllegalArgumentException { in getValue() argument
|
D | AnnotatedMember.java | 152 public abstract void setValue(Object pojo, Object value) in setValue() argument 164 public abstract Object getValue(Object pojo) in getValue() argument
|
D | AnnotatedParameter.java | 115 public void setValue(Object pojo, Object value) throws UnsupportedOperationException in setValue() argument 122 public Object getValue(Object pojo) throws UnsupportedOperationException in getValue() argument
|
D | AnnotatedConstructor.java | 145 public void setValue(Object pojo, Object value) in setValue() argument 153 public Object getValue(Object pojo) in getValue() argument
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/impl/ |
D | SimpleBeanPropertyFilter.java | 90 public void serializeAsField(Object pojo, JsonGenerator jgen, in from() 93 src.serializeAsField(pojo, jgen, prov, (BeanPropertyWriter) writer); in from() 203 public void serializeAsField(Object pojo, JsonGenerator jgen, 208 writer.serializeAsField(pojo, jgen, provider); 210 writer.serializeAsOmittedField(pojo, jgen, provider);
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/ |
D | TestAnyGetterFiltering.java | 73 public void serializeAsField(Object pojo, JsonGenerator gen, SerializerProvider provider, in serializeAsField() argument 76 if (pojo instanceof OuterObject) { in serializeAsField() 77 writer.serializeAsField(pojo, gen, provider); in serializeAsField()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | UntypedDeserializationTest.java | 322 DelegatingUntyped pojo; in testNestedUntyped989() local 325 pojo = r.readValue("[]"); in testNestedUntyped989() 326 assertTrue(pojo.value instanceof List); in testNestedUntyped989() 327 pojo = r.readValue("[{}]"); in testNestedUntyped989() 328 assertTrue(pojo.value instanceof List); in testNestedUntyped989() 330 pojo = r.readValue("{}"); in testNestedUntyped989() 331 assertTrue(pojo.value instanceof Map); in testNestedUntyped989() 332 pojo = r.readValue("{\"a\":[]}"); in testNestedUntyped989() 333 assertTrue(pojo.value instanceof Map); in testNestedUntyped989()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/ |
D | PropertyAliasTest.java | 141 Pojo2669 pojo = mapper.readValue(text, Pojo2669.class); in testCaseInsensitiveAliases() local 142 assertNotNull(pojo); in testCaseInsensitiveAliases() 143 assertEquals("test", pojo.getName()); in testCaseInsensitiveAliases()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/ |
D | TestConversions.java | 273 final CustomSerializedPojo pojo = new CustomSerializedPojo(); in testBeanToTree() local 274 pojo.setFoo("bar"); in testBeanToTree() 275 final JsonNode node = MAPPER.valueToTree(pojo); in testBeanToTree() 327 Object pojo = MAPPER.treeToValue(n, Root.class); in testConversionsOfNull() local 328 assertNull(pojo); in testConversionsOfNull()
|
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/util/ |
D | JsonGeneratorDelegate.java | 410 public void writeObject(Object pojo) throws IOException { in writeObject() argument 412 delegate.writeObject(pojo); in writeObject() 415 if (pojo == null) { in writeObject() 420 c.writeValue(this, pojo); in writeObject() 423 _writeSimpleObject(pojo); in writeObject()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/contextual/ |
D | TestContextAttributeWithDeser.java | 68 TestPOJO pojo = MAPPER.readerFor(TestPOJO.class) in testSimpleDefaults() local 71 assertEquals("x/3", pojo.value); in testSimpleDefaults()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/ |
D | TestCreators2.java | 308 … MultiPropCreator1476 pojo = mapper.readValue("{ \"intField\": 1, \"stringField\": \"foo\" }", in testConstructorChoice() local 310 assertEquals(1, pojo.getIntField()); in testConstructorChoice() 311 assertEquals("foo", pojo.getStringField()); in testConstructorChoice()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/ |
D | ContainerNode.java | 145 public final ValueNode pojoNode(Object pojo) { return _nodeFactory.pojoNode(pojo); } in pojoNode() argument
|
D | JsonNodeFactory.java | 347 public ValueNode pojoNode(Object pojo) { return new POJONode(pojo); } in pojoNode() argument
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/ |
D | AbstractDeserializer.java | 330 Object pojo = roid.resolve(); in _deserializeFromObjectId() local 331 if (pojo == null) { // not yet; should wait... in _deserializeFromObjectId() 335 return pojo; in _deserializeFromObjectId()
|
/external/jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/ |
D | ObjectIdResolver.java | 20 void bindItem(IdKey id, Object pojo); in bindItem() argument
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/ |
D | BeanPropertyFilter.java | 41 public void serializeAsField(Object pojo, JsonGenerator jgen, SerializerProvider prov, in serializeAsField() argument
|