Home
last modified time | relevance | path

Searched refs:serializeAsString (Results 1 – 10 of 10) sorted by relevance

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestSimpleTypes.java20 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 …]
DTestEmptyClass.java67 serializeAsString(mapper, new Empty()); in testEmptyWithAnnotations()
73 assertEquals("{}", serializeAsString(mapper, new EmptyWithAnno())); in testEmptyWithAnnotations()
90 assertEquals("{}", serializeAsString(mapper, new Empty())); in testEmptyWithFeature()
DTestJsonSerialize.java151 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()
DJsonValueTest.java218 … String result = serializeAsString(MAPPER, new ToStringValueClass<Integer>(Integer.valueOf(123))); in testJsonValueWithUseSerializer()
227 String result = serializeAsString(MAPPER, new ToStringValueClass2("xyz")); in testMixedJsonValue()
DTestJacksonTypes.java45 String str = serializeAsString(tb); in testTokenBuffer()
DAnyGetterTest.java190 String json = serializeAsString(m, new AnyOnlyBean()); in testAnyOnly()
196 json = serializeAsString(m, new AnyOnlyBean()); in testAnyOnly()
DSerializationOrderTest.java133 serializeAsString(m, new BeanWithOrder(1, 2, 3, 4))); in testOrderWithMixins()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DBaseMapTest.java313 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/ext/
DTestCoreXMLTypes.java30 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/jsontype/deftyping/
DTestDefaultForObject.java205 assertEquals("[\"YES\"]", serializeAsString(input)); in testEnumAsObject()
206 assertEquals("[\"MAYBE\"]", serializeAsString(input2)); in testEnumAsObject()