Examples of RiakJacksonModule


Examples of com.basho.riak.client.api.convert.RiakJacksonModule

@SuppressWarnings("unchecked")
public class RiakBeanSerializerModifierTest {

    @Test public void changePropertiesDropsRiakAnnotatedProperties() throws Exception {
        ObjectMapper mapper = new ObjectMapper();
        mapper.registerModule(new RiakJacksonModule());

        RiakAnnotatedClass rac = new RiakAnnotatedClass();

        String json = mapper.writeValueAsString(rac);
View Full Code Here

Examples of com.basho.riak.client.api.convert.RiakJacksonModule

        assertEquals(gpf.value, gpf2.value);
        assertNotNull(gpf2.list);
        assertTrue(gpf.list.containsAll(gpf2.list));

        ObjectMapper mapper = new ObjectMapper();
        mapper.registerModule(new RiakJacksonModule());
        String json = mapper.writeValueAsString(gpf2);
        RiakObject ro = resp.getValue(RiakObject.class);
        assertEquals(json, ro.getValue().toString());
       
    }
View Full Code Here

Examples of com.basho.riak.client.api.convert.RiakJacksonModule

        assertEquals(gpf.value, gpf2.value);
        assertNotNull(gpf2.list);
        assertTrue(gpf.list.containsAll(gpf2.list));

        ObjectMapper mapper = new ObjectMapper();
        mapper.registerModule(new RiakJacksonModule());
        String json = mapper.writeValueAsString(gpf2);
        RiakObject ro = resp.getValue(RiakObject.class);
        assertEquals(json, ro.getValue().toString());
       
    }
View Full Code Here

Examples of com.basho.riak.client.api.convert.RiakJacksonModule

        assertNotNull(gpi);
        assertNotNull(gpi.value);
        assertEquals(1, gpi.value.intValue());
       
        ObjectMapper mapper = new ObjectMapper();
        mapper.registerModule(new RiakJacksonModule());
        String json = mapper.writeValueAsString(gpi);
        RiakObject ro = resp.getValue(RiakObject.class);
        assertEquals(json, ro.getValue().toString());
       
        resp = client.execute(uv);
View Full Code Here

Examples of com.basho.riak.client.api.convert.RiakJacksonModule

        f = uvResp.getValue(Foo.class);
        assertNotNull(f);
        assertEquals("Little bunny foo foo.", f.fooValue);
       
        ObjectMapper mapper = new ObjectMapper();
        mapper.registerModule(new RiakJacksonModule());
        String json = mapper.writeValueAsString(f);
        RiakObject ro = uvResp.getValue(RiakObject.class);
        assertEquals(json, ro.getValue().toString());
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.