/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | MapKeyDeserializationTest.java | 78 …TypeReference<MapWrapper<Boolean, String>> type = new TypeReference<MapWrapper<Boolean, String>>()… in testBooleanMapKeyDeserialization() 79 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'true':'foobar'}}"), type); in testBooleanMapKeyDeserialization() 91 … TypeReference<MapWrapper<Byte, String>> type = new TypeReference<MapWrapper<Byte, String>>() { }; in testByteMapKeyDeserialization() 92 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'13':'foobar'}}"), type); in testByteMapKeyDeserialization() 99 …TypeReference<MapWrapper<Short, String>> type = new TypeReference<MapWrapper<Short, String>>() { }; in testShortMapKeyDeserialization() 100 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'13':'foobar'}}"), type); in testShortMapKeyDeserialization() 107 …TypeReference<MapWrapper<Integer, String>> type = new TypeReference<MapWrapper<Integer, String>>()… in testIntegerMapKeyDeserialization() 108 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'-3':'foobar'}}"), type); in testIntegerMapKeyDeserialization() 115 … TypeReference<MapWrapper<Long, String>> type = new TypeReference<MapWrapper<Long, String>>() { }; in testLongMapKeyDeserialization() 116 MapWrapper<?,?> result = MAPPER.readValue(aposToQuotes("{'map':{'42':'foobar'}}"), type); in testLongMapKeyDeserialization() [all …]
|
D | MapWithGenericValuesDeserTest.java | 42 interface MapWrapper<K,V> extends java.io.Serializable { interface in MapWithGenericValuesDeserTest 46 static class StringMap implements MapWrapper<String,Long>
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ |
D | TestAbstractContainers.java | 18 @JsonSubTypes.Type(value = MapWrapper.class, name = "wrapper"), 20 static class MapWrapper { class in TestAbstractContainers 72 MapWrapper w = new MapWrapper(); in testAbstractMaps() 76 Object o = MAPPER.readValue(json, MapWrapper.class); in testAbstractMaps() 77 assertEquals(MapWrapper.class, o.getClass()); in testAbstractMaps() 78 MapWrapper out = (MapWrapper) o; in testAbstractMaps()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | BaseMapTest.java | 123 protected static class MapWrapper<K,V> class in BaseMapTest 127 public MapWrapper() { } in MapWrapper() method in BaseMapTest.MapWrapper 128 public MapWrapper(Map<K,V> m) { in MapWrapper() method in BaseMapTest.MapWrapper 131 public MapWrapper(K key, V value) { in MapWrapper() method in BaseMapTest.MapWrapper
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/ |
D | IncludeWithDeserTest.java | 88 static class MapWrapper class in IncludeWithDeserTest 184 …MapWrapper result = MAPPER.readValue(aposToQuotes("{'value': {'a': 2, 'b': 3}}"), MapWrapper.class… in testMapWrapper()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/ |
D | TestJsonSerialize2.java | 189 … MapWrapper<String,Integer> map = new MapWrapper<String,Integer>(new HashMap<String,Integer>()); in testEmptyInclusionContainers() 192 assertEquals("{}", inclMapper.writeValueAsString(new MapWrapper<String,Integer>(null))); in testEmptyInclusionContainers()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/ |
D | IgnorePropsForSerTest.java | 57 static class MapWrapper { class in IgnorePropsForSerTest 135 assertEquals("{\"value\":{\"b\":2}}", MAPPER.writeValueAsString(new MapWrapper())); in testIgnoreWithMapProperty()
|
D | IncludePropsForSerTest.java | 76 static class MapWrapper class in IncludePropsForSerTest 159 assertEquals("{\"value\":{\"a\":1}}", MAPPER.writeValueAsString(new MapWrapper())); in testIncludeWithMapProperty()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/ |
D | MapKeySerializationTest.java | 330 MapWrapper<byte[], String> input = new MapWrapper<>(binary, "stuff"); in testMapsWithBinaryKeys()
|