Home
last modified time | relevance | path

Searched refs:pojo (Results 1 – 25 of 37) sorted by relevance

12

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectReaderValueOfWithValueTypeTest.java30 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 …]
DObjectReaderTest.java325 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 …]
DMapperViaParserTest.java139 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/
DNullConversionsViaCreator2458Test.java40 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/
DTestFormatDetection.java31 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/
DObjectIdWithBuilder1496Test.java42 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/
DAnnotatedMethod.java111 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()
DAnnotatedField.java96 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()
DVirtualAnnotatedMember.java86 public void setValue(Object pojo, Object value) throws IllegalArgumentException { in setValue() argument
91 public Object getValue(Object pojo) throws IllegalArgumentException { in getValue() argument
DAnnotatedMember.java152 public abstract void setValue(Object pojo, Object value) in setValue() argument
164 public abstract Object getValue(Object pojo) in getValue() argument
DAnnotatedParameter.java115 public void setValue(Object pojo, Object value) throws UnsupportedOperationException in setValue() argument
122 public Object getValue(Object pojo) throws UnsupportedOperationException in getValue() argument
DAnnotatedConstructor.java145 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/
DSimpleBeanPropertyFilter.java90 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/
DTestAnyGetterFiltering.java73 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/
DUntypedDeserializationTest.java322 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/
DPropertyAliasTest.java141 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/
DTestConversions.java273 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/
DJsonGeneratorDelegate.java410 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/
DTestContextAttributeWithDeser.java68 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/
DTestCreators2.java308 … 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/
DContainerNode.java145 public final ValueNode pojoNode(Object pojo) { return _nodeFactory.pojoNode(pojo); } in pojoNode() argument
DJsonNodeFactory.java347 public ValueNode pojoNode(Object pojo) { return new POJONode(pojo); } in pojoNode() argument
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DAbstractDeserializer.java330 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/
DObjectIdResolver.java20 void bindItem(IdKey id, Object pojo); in bindItem() argument
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/
DBeanPropertyFilter.java41 public void serializeAsField(Object pojo, JsonGenerator jgen, SerializerProvider prov, in serializeAsField() argument

12