Searched refs:serializeAsString (Results 1 – 10 of 10) sorted by relevance
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/ |
D | TestSimpleTypes.java | 20 assertEquals("true", serializeAsString(MAPPER, Boolean.TRUE)); in testBoolean() 21 assertEquals("false", serializeAsString(MAPPER, Boolean.FALSE)); in testBoolean() 26 assertEquals("[true,false]", serializeAsString(MAPPER, new boolean[] { true, false} )); in testBooleanArray() 27 …assertEquals("[true,false]", serializeAsString(MAPPER, new Boolean[] { Boolean.TRUE, Boolean.FALSE… in testBooleanArray() 38 String str1 = serializeAsString(MAPPER, data); in testByteArray() 39 String str2 = serializeAsString(MAPPER, data2); in testByteArray() 66 assertEquals("[0,1]", serializeAsString(MAPPER, new short[] { 0, 1 })); in testShortArray() 67 assertEquals("[2,3]", serializeAsString(MAPPER, new Short[] { 2, 3 })); in testShortArray() 72 assertEquals("[0,-3]", serializeAsString(MAPPER, new int[] { 0, -3 })); in testIntArray() 73 assertEquals("[13,9]", serializeAsString(MAPPER, new Integer[] { 13, 9 })); in testIntArray() [all …]
|
D | TestEmptyClass.java | 67 serializeAsString(mapper, new Empty()); in testEmptyWithAnnotations() 73 assertEquals("{}", serializeAsString(mapper, new EmptyWithAnno())); in testEmptyWithAnnotations() 90 assertEquals("{}", serializeAsString(mapper, new Empty())); in testEmptyWithFeature()
|
D | TestJsonSerialize.java | 151 serializeAsString(MAPPER, new BrokenClass()); in testBrokenAnnotation() 197 assertEquals("{\"a\":{\"x\":3}}", serializeAsString(m, map)); in testStaticTypingWithMap() 217 assertEquals("[{\"x\":3}]", serializeAsString(m, list)); in testStaticTypingWithLinkedList() 226 assertEquals("[{\"x\":3}]", serializeAsString(m, array)); in testStaticTypingWithArray()
|
D | JsonValueTest.java | 218 … String result = serializeAsString(MAPPER, new ToStringValueClass<Integer>(Integer.valueOf(123))); in testJsonValueWithUseSerializer() 227 String result = serializeAsString(MAPPER, new ToStringValueClass2("xyz")); in testMixedJsonValue()
|
D | TestJacksonTypes.java | 45 String str = serializeAsString(tb); in testTokenBuffer()
|
D | AnyGetterTest.java | 190 String json = serializeAsString(m, new AnyOnlyBean()); in testAnyOnly() 196 json = serializeAsString(m, new AnyOnlyBean()); in testAnyOnly()
|
D | SerializationOrderTest.java | 133 serializeAsString(m, new BeanWithOrder(1, 2, 3, 4))); in testOrderWithMixins()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ext/ |
D | TestCoreXMLTypes.java | 30 assertEquals(quote(qn.toString()), serializeAsString(qn)); in testQNameSer() 38 assertEquals(quote(dur.toString()), serializeAsString(dur)); in testDurationSer()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | BaseMapTest.java | 313 protected String serializeAsString(ObjectMapper m, Object value) in serializeAsString() method in BaseMapTest 319 protected String serializeAsString(Object value) in serializeAsString() method in BaseMapTest 322 return serializeAsString(sharedMapper(), value); in serializeAsString()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/ |
D | TestDefaultForObject.java | 205 assertEquals("[\"YES\"]", serializeAsString(input)); in testEnumAsObject() 206 assertEquals("[\"MAYBE\"]", serializeAsString(input2)); in testEnumAsObject()
|