/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/ |
D | NumberSerTest.java | 115 assertEquals(aposToQuotes("{'value':'3'}"), MAPPER.writeValueAsString(new IntAsString())); in testNumbersAsString() 116 assertEquals(aposToQuotes("{'value':'4'}"), MAPPER.writeValueAsString(new LongAsString())); in testNumbersAsString() 117 … assertEquals(aposToQuotes("{'value':'-0.5'}"), MAPPER.writeValueAsString(new DoubleAsString())); in testNumbersAsString() 118 …assertEquals(aposToQuotes("{'value':'0.25'}"), MAPPER.writeValueAsString(new BigDecimalAsString())… in testNumbersAsString() 119 …assertEquals(aposToQuotes("{'value':'123456'}"), MAPPER.writeValueAsString(new BigIntegerAsString(… in testNumbersAsString() 124 …assertEquals(aposToQuotes("{'value':'3'}"), NON_EMPTY_MAPPER.writeValueAsString(new IntAsString())… in testNumbersAsStringNonEmpty() 125 …assertEquals(aposToQuotes("{'value':'4'}"), NON_EMPTY_MAPPER.writeValueAsString(new LongAsString()… in testNumbersAsStringNonEmpty() 126 …assertEquals(aposToQuotes("{'value':'-0.5'}"), NON_EMPTY_MAPPER.writeValueAsString(new DoubleAsStr… in testNumbersAsStringNonEmpty() 127 …assertEquals(aposToQuotes("{'value':'0.25'}"), NON_EMPTY_MAPPER.writeValueAsString(new BigDecimalA… in testNumbersAsStringNonEmpty() 128 …assertEquals(aposToQuotes("{'value':'123456'}"), NON_EMPTY_MAPPER.writeValueAsString(new BigIntege… in testNumbersAsStringNonEmpty() [all …]
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/filter/ |
D | BasicParserFilteringTest.java | 72 private final String SIMPLE = aposToQuotes( 91 assertEquals(aposToQuotes("3"), result); in testSingleMatchFilteringWithoutPath() 97 …String jsonString = aposToQuotes("{'a':123,'array':[1,2],'ob':{'value0':2,'value':3,'value2':4},'b… in testSingleMatchFilteringWithPath1() 105 assertEquals(aposToQuotes("{'a':123}"), result); in testSingleMatchFilteringWithPath1() 111 …String jsonString = aposToQuotes("{'a':123,'array':[1,2],'ob':{'value0':2,'value':3,'value2':4},'b… in testSingleMatchFilteringWithPath2() 119 assertEquals(aposToQuotes("{\"ob\":{\"value\":3}}"), result); in testSingleMatchFilteringWithPath2() 125 …String jsonString = aposToQuotes("{'a':123,'ob':{'value0':2,'value':3,'value2':4},'array':[1,2],'b… in testSingleMatchFilteringWithPath3() 133 assertEquals(aposToQuotes("{'ob':{'value0':2,'value':3,'value2':4}}"), result); in testSingleMatchFilteringWithPath3() 139 …String jsonString = aposToQuotes("{'a':123,'array':[1,2],'ob':{'value0':2,'value':3,'value2':4,'va… in testNotAllowMultipleMatchesWithoutPath1() 147 assertEquals(aposToQuotes("3"), result); in testNotAllowMultipleMatchesWithoutPath1() [all …]
|
D | BasicGeneratorFilteringTest.java | 113 assertEquals(aposToQuotes( in testNonFiltering() 155 assertEquals(aposToQuotes("{'ob':{'value':3}}"), w.toString()); in testSingleMatchFilteringWithPath() 177 assertEquals(aposToQuotes("{'ob':[{'value':'bar'}]}"), w.toString()); in testSingleMatchFilteringWithPathSkippedArray() 227 assertEquals(aposToQuotes( in _testSingleMatchFilteringWithPathAlternate1() 232 assertEquals(aposToQuotes("{'ob':{'value':['x']}}"), w.toString()); in _testSingleMatchFilteringWithPathAlternate1() 284 assertEquals(aposToQuotes("{'array':['AQ==',1,2,3,4 ,5.0 /*x*/,6.25,7.5]}"), w.toString()); in testSingleMatchFilteringWithPathRawBinary() 296 assertEquals(aposToQuotes("{'ob':{'value0':2,'value2':4}}"), w.toString()); in testMultipleMatchFilteringWithPath1() 305 assertEquals(aposToQuotes("{'a':123,'array':[1,2],'b':true}"), w.toString()); in testMultipleMatchFilteringWithPath1() 312 assertEquals(aposToQuotes("{'a':123,'b':true}"), w.toString()); in testMultipleMatchFilteringWithPath1() 324 assertEquals(aposToQuotes("{'array':[1,2],'ob':{'value':3},'b':true}"), w.toString()); in testMultipleMatchFilteringWithPath2() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/format/ |
D | MapEntryFormatTest.java | 110 assertEquals(aposToQuotes("{'entry':{'a':'b'}}"), in testInclusion() 112 assertEquals(aposToQuotes("{'entry':{'a':'b'}}"), in testInclusion() 114 assertEquals(aposToQuotes("{'entry':{'a':'b'}}"), in testInclusion() 117 assertEquals(aposToQuotes("{}"), in testInclusion() 119 assertEquals(aposToQuotes("{}"), in testInclusion() 121 assertEquals(aposToQuotes("{'entry':{'a':''}}"), in testInclusion() 123 assertEquals(aposToQuotes("{}"), in testInclusion() 129 assertEquals(aposToQuotes("{'entry':{'a':'b'}}"), in testInclusionWithReference() 133 assertEquals(aposToQuotes("{'entry':{'a':''}}"), in testInclusionWithReference() 135 assertEquals(aposToQuotes("{}"), in testInclusionWithReference() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/merge/ |
D | ArrayMergeTest.java | 42 .readValue(aposToQuotes("{'value':['bar']}")); in testObjectArrayMerging() 52 .readValue(aposToQuotes("{'value':'zap'}")); in testObjectArrayMerging() 66 .readValue(aposToQuotes("{'value':['bar']}")); in testStringArrayMerging() 79 .readValue(aposToQuotes("{'value':[true]}")); in testBooleanArrayMerging() 91 .readValue(aposToQuotes("{'value':[4, 6.0, null]}")); in testByteArrayMerging() 103 .readValue(aposToQuotes("{'value':[4, 6]}")); in testShortArrayMerging() 115 .readValue(aposToQuotes("{'value':['c']}")); in testCharArrayMerging() 124 .readValue(aposToQuotes("{'value':['c']}")); in testCharArrayMerging() 135 .readValue(aposToQuotes("{'value':[4, 6]}")); in testIntArrayMerging() 145 .readValue(aposToQuotes("{'value':[ ]}")); in testIntArrayMerging() [all …]
|
D | PropertyMergeTest.java | 123 Config config = MAPPER.readValue(aposToQuotes("{'loc':{'b':3}}"), Config.class); in testBeanMergingViaProp() 128 .readValue(aposToQuotes("{'loc':{'b':2}}")); in testBeanMergingViaProp() 136 … NonMergeConfig config = MAPPER.readValue(aposToQuotes("{'loc':{'a':3}}"), NonMergeConfig.class); in testBeanMergingViaType() 143 config = mapper.readValue(aposToQuotes("{'loc':{'a':3}}"), NonMergeConfig.class); in testBeanMergingViaType() 153 … NonMergeConfig config = mapper.readValue(aposToQuotes("{'loc':{'a':3}}"), NonMergeConfig.class); in testBeanMergingViaGlobal() 162 .readValue(aposToQuotes("{'name':{'last':'Brown'}}")); in testBeanMergingViaGlobal() 170 NoSetterConfig config = MAPPER.readValue(aposToQuotes("{'value':{'b':99}}"), in testBeanMergingWithoutSetter() 188 .readValue(aposToQuotes("{'mergeableBean': {'foo': 'newFoo'}}")); in testBeanMergeUsingConstructors() 244 MergedReference result = MAPPER.readValue(aposToQuotes("{'value':'override'}"), in testReferenceMerging()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/ |
D | IncludeWithDeserTest.java | 120 aposToQuotes("{ 'x':1, '_x': 1, 'y':2, 'z':3 }"), in testSimpleInclude() 132 OnlyY result = r.readValue(aposToQuotes("{'x':3, 'y': 4}")); in testIncludeIgnoredAndUnrecognizedField() 139 r.readValue(aposToQuotes("{'x':3, 'y': 4, 'z': 5}")); in testIncludeIgnoredAndUnrecognizedField() 147 r.readValue(aposToQuotes("{'y': 3, 'z':2 }")); in testIncludeIgnoredAndUnrecognizedField() 156 r.readValue(aposToQuotes("{'y': 3, 'z':2 }")); in testIncludeIgnoredAndUnrecognizedField() 164 aposToQuotes("{'onlyY': {'x': 2, 'y':3, 'z': 4}}"), in testMergeInclude() 175 aposToQuotes("{'onlyYs':[{ 'x':1, 'y' : 2, 'z': 3 }]}"), in testListInclude() 184 …MapWrapper result = MAPPER.readValue(aposToQuotes("{'value': {'a': 2, 'b': 3}}"), MapWrapper.class… in testMapWrapper() 191 MyMap result = MAPPER.readValue(aposToQuotes("{'a': 2, 'b': 3}"), MyMap.class); in testMyMap() 198 String json = aposToQuotes("{'@id':1, 'foo':2, 'foo2':2, 'bar':{'@id':2, 'foo':1}}"); in testForwardReferenceAnySetterComboWithInclude()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/ |
D | RequiredCreatorTest.java | 65 p = POINT_READER.readValue(aposToQuotes("{'y':2,'x':1}")); in testRequiredAnnotatedParam() 68 p = POINT_READER.readValue(aposToQuotes("{'x':3,'y':4}")); in testRequiredAnnotatedParam() 73 p = POINT_READER.readValue(aposToQuotes("{'x':3}")); in testRequiredAnnotatedParam() 79 POINT_READER.readValue(aposToQuotes("{'y':3}")); in testRequiredAnnotatedParam() 91 p = POINT_READER.readValue(aposToQuotes("{'x':2}")); in testRequiredGloballyParam() 98 r.readValue(aposToQuotes("{'x':6}")); in testRequiredGloballyParam() 108 final String input = aposToQuotes("{'status':'OK', 'message':'Sent Successfully!'}"); in testRequiredViaParameter2591()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/ |
D | NullConversionsForContentTest.java | 48 final String JSON = aposToQuotes("{'values':[null]}"); in testFailOnNullFromDefaults() 86 NullContentFail<List<Integer>> result = MAPPER.readValue(aposToQuotes("{'nullsOk':[null]}"), in testFailOnNullWithCollections() 95 final String JSON = aposToQuotes("{'noNulls':[null]}"); in testFailOnNullWithCollections() 116 final String JSON = aposToQuotes("{'noNulls':[null]}"); in testFailOnNullWithArrays() 138 final String JSON = aposToQuotes("{'noNulls':[null]}"); in testFailOnNullWithPrimitiveArrays() 170 final String MAP_JSON = aposToQuotes("{'noNulls':{'a':null}}"); in testFailOnNullWithMaps() 180 final String MAP_JSON = aposToQuotes("{'noNulls':{'A':null}}"); in testFailOnNullWithMaps() 197 final String JSON = aposToQuotes("{'values':[null]}"); in testNullsAsEmptyWithCollections() 218 final String JSON = aposToQuotes("{'values':[null]}"); in testNullsAsEmptyUsingDefaults() 240 final String JSON = aposToQuotes("{'values':[null]}"); in testNullsAsEmptyWithArrays() [all …]
|
D | NullConversionsPojoTest.java | 51 NullFail result = MAPPER.readValue(aposToQuotes("{'noNulls':'foo', 'nullsOk':null}"), in testFailOnNull() 58 result = MAPPER.readValue(aposToQuotes("{'noNulls':null}"), in testFailOnNull() 69 String json = aposToQuotes("{'name':null}"); in testFailOnNullWithDefaults() 86 NullAsEmpty result = MAPPER.readValue(aposToQuotes("{'nullAsEmpty':'foo', 'nullsOk':null}"), in testNullsToEmptyScalar() 92 result = MAPPER.readValue(aposToQuotes("{'nullAsEmpty':null}"), in testNullsToEmptyScalar() 97 String json = aposToQuotes("{'name':null}"); in testNullsToEmptyScalar()
|
D | NullConversionsGenericTest.java | 46 GeneralEmpty<Point> result = MAPPER.readValue(aposToQuotes("{'value':null}"), in testNullsToEmptyPojo() 55 /* NoCtorWrapper nogo =*/ MAPPER.readValue(aposToQuotes("{'value':null}"), in testNullsToEmptyPojo() 68 .readValue(aposToQuotes("{'value':''}")); in testEmptyStringToNullToEmptyPojo() 77 GeneralEmpty<List<String>> result = MAPPER.readValue(aposToQuotes("{'value':null}"), in testNullsToEmptyCollection() 83 GeneralEmpty<List<Integer>> result2 = MAPPER.readValue(aposToQuotes("{'value':null}"), in testNullsToEmptyCollection() 91 GeneralEmpty<Map<String,String>> result = MAPPER.readValue(aposToQuotes("{'value':null}"), in testNullsToEmptyMap() 99 final String json = aposToQuotes("{'value':null}"); in testNullsToEmptyArrays()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/ |
D | EnumAsMapKeyTest.java | 121 assertEquals(aposToQuotes("{'map':{'B':3}}"), json); in testMapWithEnumKeys() 126 assertEquals(aposToQuotes("{'X-FOO':'abc'}"), json); in testCustomEnumMapKeySerializer() 131 assertEquals(aposToQuotes("{'stuff':{'longValue':'foo'}}"), in testJsonValueForEnumMapKey() 141 assertEquals(aposToQuotes("{'FIRST':3}"), in testEnumAsIndexForRootMap() 145 assertEquals(aposToQuotes("{'0':3}"), in testEnumAsIndexForRootMap() 151 assertEquals(aposToQuotes("{'FIRST':3}"), in testEnumAsIndexForRootMap() 163 assertEquals(aposToQuotes("{'values':{'SECOND':72}}"), in testEnumAsIndexForValueMap() 167 assertEquals(aposToQuotes("{'values':{'1':72}}"), in testEnumAsIndexForValueMap() 173 assertEquals(aposToQuotes("{'values':{'SECOND':72}}"), in testEnumAsIndexForValueMap()
|
D | TestMapSerialization.java | 109 assertEquals(aposToQuotes("{'a':1}"), json); in testUsingObjectWriter() 175 assertEquals(aposToQuotes("{'map':{'a':3,'b':2,'c':1}}"), json); in testOrderByKeyViaProperty() 183 assertEquals(aposToQuotes("{'answer':42}"), json); in testMapEntry() 187 assertEquals(aposToQuotes("[{'answer':42}]"), json); in testMapEntry() 193 assertEquals(aposToQuotes("['"+StringIntMapEntry.class.getName()+"',{'answer':42}]"), in testMapEntry() 201 assertEquals(aposToQuotes("{'value':{'answer':42}}"), json); in testMapEntryWrapper() 213 assertEquals(aposToQuotes("{'@type':'mymap','id':'Test','NULL':null}"), in testNullJsonMapping691() 237 assertEquals(aposToQuotes("{'a':'b','x':'y'}"), json); in testConcurrentMaps() 243 assertEquals(aposToQuotes("{'a':'b','x':'y'}"), json); in testConcurrentMaps() 250 assertEquals(aposToQuotes("{'a':'b','x':'y'}"), json); in testConcurrentMaps()
|
D | TestVirtualProperties.java | 103 assertEquals(aposToQuotes("{'value':13,'id':'abc123','extra':{'x':3,'y':'B'}}"), json); in testAttributeProperties() 108 assertEquals(aposToQuotes("{'id':'abc123','extra':{'x':3,'y':'B'},'value':13}"), json); in testAttributeProperties() 116 assertEquals(aposToQuotes("{'value':28,'desc':'nice'}"), json); in testAttributePropInclusion() 120 assertEquals(aposToQuotes("{'value':28}"), json); in testAttributePropInclusion() 125 assertEquals(aposToQuotes("{'value':28}"), json); in testAttributePropInclusion() 132 assertEquals(aposToQuotes("{'id':'abc123','extra':[42],'value':72}"), json); in testCustomProperties()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/struct/ |
D | FormatFeatureAcceptSingleTest.java | 83 String json = aposToQuotes( in testSingleStringArrayRead() 101 String json = aposToQuotes( in testSingleIntArrayRead() 110 String json = aposToQuotes( in testSingleLongArrayRead() 119 String json = aposToQuotes( in testSingleBooleanArrayRead() 128 String json = aposToQuotes( in testSingleDoubleArrayRead() 137 String json = aposToQuotes( in testSingleFloatArrayRead() 146 String json = aposToQuotes( in testSingleElementArrayRead() 155 String json = aposToQuotes( in testSingleStringListRead() 164 String json = aposToQuotes( in testSingleElementListRead() 173 EnumSetWrapper result = MAPPER.readValue(aposToQuotes("{ 'values': 'B' }"), in testSingleEnumSetRead()
|
D | UnwrapSingleArrayMiscTest.java | 26 IntWrapper w = r.readValue(aposToQuotes("[{'i':42}]")); in testSimplePOJOUnwrapping() 30 r.readValue(aposToQuotes("[{'i':42},{'i':16}]")); in testSimplePOJOUnwrapping() 47 Map<String,Object> m = r.readValue(aposToQuotes("[{'stuff':42}]")); in testSimpleMapUnwrapping() 51 r.readValue(aposToQuotes("[{'i':42},{'i':16}]")); in testSimpleMapUnwrapping() 61 EnumMap<ABC,Integer> m = r.readValue(aposToQuotes("[{'A':42}]")); in testEnumMapUnwrapping() 67 r.readValue(aposToQuotes("[{'A':42},{'B':13}]")); in testEnumMapUnwrapping()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/ |
D | MapInclusion2573Test.java | 49 assertEquals(aposToQuotes("{'Speed':100}"), in test2572MapDefault() 51 assertEquals(aposToQuotes("{'model':'F60','properties':{'Speed':100}}"), in test2572MapDefault() 64 assertEquals(aposToQuotes("{'Speed':100}"), in test2572MapOverrideUseDefaults() 66 assertEquals(aposToQuotes("{'model':'F60','properties':{'Speed':100}}"), in test2572MapOverrideUseDefaults() 79 assertEquals(aposToQuotes("{'Speed':100,'Weight':null}"), in test2572MapOverrideInclAlways() 81 assertEquals(aposToQuotes("{'model':'F60','properties':{'Speed':100,'Weight':null}}"), in test2572MapOverrideInclAlways()
|
D | TestMapFiltering.java | 171 assertEquals(aposToQuotes("{'values':{'b':5}}"), json); in testMapFilteringViaProps() 182 assertEquals(aposToQuotes("{'b':3}"), json); in testMapFilteringViaClass() 192 assertEquals(aposToQuotes("{'stuff':{'a':'foo','c':'bar'}}"), json); in testNonNullValueMapViaProp() 202 assertEquals(aposToQuotes("{'values':{'a':2}}"), json); in testMapFilteringWithAnnotations() 206 assertEquals(aposToQuotes("{'values':{'a':1}}"), json); in testMapFilteringWithAnnotations() 216 assertEquals(aposToQuotes("{'a':'foo','c':'bar'}"), json); in testMapNonNullValue() 226 assertEquals(aposToQuotes("{'a':'foo','b':'bar'}"), json); in testMapNonEmptyValue() 236 assertEquals(aposToQuotes("{'a':'foo'}"), json); in testMapAbsentValue() 262 assertEquals(aposToQuotes("{'values':{'a':'123'}}"), json); in testMapWithOnlyEmptyValues() 268 assertEquals(aposToQuotes("{}"), json); in testMapWithOnlyEmptyValues() [all …]
|
D | JsonIncludeOverrideTest.java | 61 assertEquals(aposToQuotes("{'list':[],'map':{}}"), in testPropConfigOverridesForInclude() 68 assertEquals(aposToQuotes("{'list':[]}"), in testPropConfigOverridesForInclude() 74 assertEquals(aposToQuotes("{'map':{}}"), in testPropConfigOverridesForInclude() 83 assertEquals(aposToQuotes("{'num':null,'plain':null}"), in testOverrideForIncludeAsPropertyNonNull() 115 assertEquals(aposToQuotes("{'annotated':null,'plain':null}"), in testOverrideForIncludeAsPropertyAlways() 122 assertEquals(aposToQuotes("{'num':null,'annotated':null}"), in testOverrideForIncludeAsPropertyAlways() 134 assertEquals(aposToQuotes("{'num':null,'annotated':null,'plain':null}"), in testOverridesForIncludeAndIncludeAsPropertyNonNull() 145 assertEquals(aposToQuotes("{'num':null,'annotated':null}"), in testOverridesForIncludeAndIncludeAsPropertyNonNull() 155 assertEquals(aposToQuotes("{'annotated':null,'plain':null}"), in testOverridesForIncludeAndIncludeAsPropertyNonNull()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/ |
D | TransientTest.java | 60 assertEquals(aposToQuotes("{'x':42,'value':3}"), in testTransientFieldHandling() 62 assertEquals(aposToQuotes("{'a':1}"), in testTransientFieldHandling() 69 assertEquals(aposToQuotes("{'x':42}"), in testTransientFieldHandling() 76 assertEquals(aposToQuotes("{'y':4}"), in testBeanTransient() 83 assertEquals(aposToQuotes("{'tValue':38}"), in testOverridingTransient()
|
D | BeanNamingTest.java | 24 assertEquals(aposToQuotes("{'url':'http://foo'}"), in testSimple() 26 assertEquals(aposToQuotes("{'a':3}"), in testSimple() 32 assertEquals(aposToQuotes("{'URL':'http://foo'}"), in testSimple() 34 assertEquals(aposToQuotes("{'a':3}"), in testSimple()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | TestRootName.java | 52 mapper.readValue(aposToQuotes("{'notRudy':{'a':3}}"), Bean.class); in testRootViaMapperFails() 60 mapper.readValue(aposToQuotes("[{'rudy':{'a':3}}]"), Bean.class); in testRootViaMapperFails() 68 mapper.readValue(aposToQuotes("{}]"), Bean.class); in testRootViaMapperFails() 76 mapper.readValue(aposToQuotes("{'rudy':{'a':3}, 'extra':3}"), Bean.class); in testRootViaMapperFails() 89 reader.readValue(aposToQuotes("{'notRudy':{'a':3}}")); in testRootViaReaderFails() 97 reader.readValue(aposToQuotes("[{'rudy':{'a':3}}]")); in testRootViaReaderFails() 105 reader.readValue(aposToQuotes("{}]")); in testRootViaReaderFails() 113 reader.readValue(aposToQuotes("{'rudy':{'a':3}, 'extra':3}")); in testRootViaReaderFails()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/seq/ |
D | SequenceWriterTest.java | 108 assertEquals(aposToQuotes("{'a':13}\n{'a':-6}\n{'a':3}\n{'a':1}\n{'a':5}\n{'a':7}"), in testSimpleNonArray() 120 assertEquals(aposToQuotes("{'a':1}/{'a':2}"), in testSimpleNonArray() 132 assertEquals(aposToQuotes("[{'a':1},{'a':2},{'a':-7},{'a':2}]"), in testSimpleArray() 144 assertEquals(aposToQuotes("[{'a':1},null,{'a':3}]"), in testSimpleArray() 163 assertEquals(aposToQuotes("{'type':'A','value':3}\n{'type':'A','value':4}"), in testPolymorphicNonArrayWithoutType() 176 assertEquals(aposToQuotes("[{'type':'A','value':-1},{'type':'A','value':6}]"), in testPolymorphicArrayWithoutType() 191 … assertEquals(aposToQuotes("[{'type':'A','value':-1},{'type':'B','b':3},{'type':'A','value':7}]"), in testPolymorphicArrayWithType() 211 assertEquals(aposToQuotes("{'closed':false,'x':0}"), out.toString()); in testSimpleCloseable() 236 assertEquals(aposToQuotes("{'a':1,'b':2} {'a':1} {'a':1}"), out.toString()); in testWithExplicitType()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | MapKeyDeserializationTest.java | 79 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'true':'foobar'}}"), type); in testBooleanMapKeyDeserialization() 84 result = MAPPER.readValue(aposToQuotes("{'map':{'false':'foobar'}}"), type); in testBooleanMapKeyDeserialization() 92 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'13':'foobar'}}"), type); in testByteMapKeyDeserialization() 100 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'13':'foobar'}}"), type); in testShortMapKeyDeserialization() 108 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'-3':'foobar'}}"), type); in testIntegerMapKeyDeserialization() 116 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'42':'foobar'}}"), type); in testLongMapKeyDeserialization() 124 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'3.5':'foobar'}}"), type); in testFloatMapKeyDeserialization() 132 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'0.25':'foobar'}}"), type); in testDoubleMapKeyDeserialization() 161 aposToQuotes("{'map':{'"+encoded+"':'foobar'}}"), in testByteArrayMapKeyDeserialization()
|
D | JDKAtomicTypesDeserTest.java | 147 assertEquals(aposToQuotes("{'value':true}"), in testAbsentExclusion() 149 assertEquals(aposToQuotes("{}"), in testAbsentExclusion() 159 assertEquals(aposToQuotes("{'value':true}"), in testSerPropInclusionAlways() 169 assertEquals(aposToQuotes("{'value':true}"), in testSerPropInclusionNonNull() 179 assertEquals(aposToQuotes("{'value':true}"), in testSerPropInclusionNonAbsent() 189 assertEquals(aposToQuotes("{'value':true}"), in testSerPropInclusionNonEmpty() 213 assertEquals(aposToQuotes("{'value':null}"), mapper.writeValueAsString(input)); in testFilteringOfAtomicReference() 218 assertEquals(aposToQuotes("{'value':null}"), mapper.writeValueAsString(input)); in testFilteringOfAtomicReference() 244 AtomicRefReadWrapper result = MAPPER.readValue(aposToQuotes("{'value':'abc'}"), in testDeserializeWithContentAs() 255 String jsonExp = aposToQuotes("{'XX.name':'Bob'}"); in testWithUnwrapping() [all …]
|