Search in sources :

Example 1 with StdSerializer

use of com.fasterxml.jackson.databind.ser.std.StdSerializer in project pentaho-metaverse by pentaho.

the class KettleObjectMapperTest method testWriteValueAsString.

@Test
public void testWriteValueAsString() throws Exception {
    StdSerializer serializer = new TransMetaJsonSerializer(TransMeta.class);
    serializers.add(serializer);
    mapper = new KettleObjectMapper(serializers, null);
    mapper.writeValueAsString(new TransMeta());
}
Also used : StdSerializer(com.fasterxml.jackson.databind.ser.std.StdSerializer) TransMeta(org.pentaho.di.trans.TransMeta) Test(org.junit.Test)

Aggregations

StdSerializer (com.fasterxml.jackson.databind.ser.std.StdSerializer)1 Test (org.junit.Test)1 TransMeta (org.pentaho.di.trans.TransMeta)1