Search in sources :

Example 1 with JacksonSmileDataCodec

use of com.linkedin.data.codec.JacksonSmileDataCodec in project rest.li by linkedin.

the class TestSymbolTableSerializer method data.

@DataProvider
public static Object[][] data() {
    List<Object[]> list = new ArrayList<>();
    List<DataCodec> codecs = new ArrayList<>();
    codecs.add(new BsonDataCodec());
    codecs.add(new JacksonDataCodec());
    codecs.add(new JacksonSmileDataCodec());
    codecs.add(new JacksonLICORDataCodec(false));
    codecs.add(new JacksonLICORDataCodec(true));
    codecs.add(new ProtobufDataCodec());
    for (DataCodec codec : codecs) {
        list.add(new Object[] { codec, true });
        list.add(new Object[] { codec, false });
    }
    return list.toArray(new Object[][] {});
}
Also used : JacksonSmileDataCodec(com.linkedin.data.codec.JacksonSmileDataCodec) ProtobufDataCodec(com.linkedin.data.codec.ProtobufDataCodec) DataCodec(com.linkedin.data.codec.DataCodec) JacksonLICORDataCodec(com.linkedin.data.codec.JacksonLICORDataCodec) JacksonDataCodec(com.linkedin.data.codec.JacksonDataCodec) BsonDataCodec(com.linkedin.data.codec.BsonDataCodec) JacksonDataCodec(com.linkedin.data.codec.JacksonDataCodec) ProtobufDataCodec(com.linkedin.data.codec.ProtobufDataCodec) JacksonLICORDataCodec(com.linkedin.data.codec.JacksonLICORDataCodec) BsonDataCodec(com.linkedin.data.codec.BsonDataCodec) ArrayList(java.util.ArrayList) JacksonSmileDataCodec(com.linkedin.data.codec.JacksonSmileDataCodec) DataProvider(org.testng.annotations.DataProvider)

Aggregations

BsonDataCodec (com.linkedin.data.codec.BsonDataCodec)1 DataCodec (com.linkedin.data.codec.DataCodec)1 JacksonDataCodec (com.linkedin.data.codec.JacksonDataCodec)1 JacksonLICORDataCodec (com.linkedin.data.codec.JacksonLICORDataCodec)1 JacksonSmileDataCodec (com.linkedin.data.codec.JacksonSmileDataCodec)1 ProtobufDataCodec (com.linkedin.data.codec.ProtobufDataCodec)1 ArrayList (java.util.ArrayList)1 DataProvider (org.testng.annotations.DataProvider)1