Home
last modified time | relevance | path

Searched refs:MapWrapper (Results 1 – 9 of 9) sorted by relevance

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DMapKeyDeserializationTest.java78 …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 …]
DMapWithGenericValuesDeserTest.java42 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/
DTestAbstractContainers.java18 @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/
DBaseMapTest.java123 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/
DIncludeWithDeserTest.java88 static class MapWrapper class in IncludeWithDeserTest
184MapWrapper result = MAPPER.readValue(aposToQuotes("{'value': {'a': 2, 'b': 3}}"), MapWrapper.class… in testMapWrapper()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestJsonSerialize2.java189MapWrapper<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/
DIgnorePropsForSerTest.java57 static class MapWrapper { class in IgnorePropsForSerTest
135 assertEquals("{\"value\":{\"b\":2}}", MAPPER.writeValueAsString(new MapWrapper())); in testIgnoreWithMapProperty()
DIncludePropsForSerTest.java76 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/
DMapKeySerializationTest.java330 MapWrapper<byte[], String> input = new MapWrapper<>(binary, "stuff"); in testMapsWithBinaryKeys()