Package com.basho.riak.client.core.util

Examples of com.basho.riak.client.core.util.BinaryValue


       
   
    @Test
    public void setKeyStringField()
    {
        final BinaryValue expected = BinaryValue.create("aKey");
        final PojoWithAnnotatedFields pojo = new PojoWithAnnotatedFields();
        AnnotationUtil.setKey(pojo, expected);
       
        assertNotNull(pojo.key);
        assertEquals(expected.toString(), pojo.key);
    }
View Full Code Here


    }

    @Test
    public void setKeyByteField()
    {
        final BinaryValue expected = BinaryValue.create("aKey");
        final PojoWithAnnotatedByteFields pojo = new PojoWithAnnotatedByteFields();
        AnnotationUtil.setKey(pojo, expected);
       
        assertNotNull(pojo.key);
        assertArrayEquals(expected.getValue(), pojo.key);
    }
View Full Code Here

    }
   
    @Test
    public void setKeyStringMethod()
    {
        final BinaryValue expected = BinaryValue.create("aKey");
        final PojoWithAnnotatedMethods pojo = new PojoWithAnnotatedMethods();
        AnnotationUtil.setKey(pojo, expected);
       
        assertNotNull(pojo.getKey());
        assertEquals(expected.toString(), pojo.getKey());
    }
View Full Code Here

    }
   
    @Test
    public void setBucketNameStringField()
    {
        final BinaryValue expected = BinaryValue.create("aBucket");
        final PojoWithAnnotatedFields pojo = new PojoWithAnnotatedFields();
        AnnotationUtil.setBucketName(pojo, expected);
       
        assertNotNull(pojo.bucketName);
        assertEquals(expected.toString(), pojo.bucketName);
    }
View Full Code Here

    }

    @Test
    public void setBucketNameByteField()
    {
        final BinaryValue expected = BinaryValue.create("aBucket");
        final PojoWithAnnotatedByteFields pojo = new PojoWithAnnotatedByteFields();
        AnnotationUtil.setBucketName(pojo, expected);
       
        assertNotNull(pojo.bucketName);
        assertArrayEquals(expected.getValue(), pojo.bucketName);
    }
View Full Code Here

    }
   
    @Test
    public void setBucketNameStringMethod()
    {
        final BinaryValue expected = BinaryValue.create("aBucket");
        final PojoWithAnnotatedMethods pojo = new PojoWithAnnotatedMethods();
        AnnotationUtil.setBucketName(pojo, expected);
       
        assertNotNull(pojo.bucketName);
        assertEquals(expected.toString(), pojo.bucketName);
    }
View Full Code Here

    }
   
    @Test
    public void setBucketTypeStringField()
    {
        final BinaryValue expected = BinaryValue.create("aBucketType");
        final PojoWithAnnotatedFields pojo = new PojoWithAnnotatedFields();
        AnnotationUtil.setBucketType(pojo, expected);
       
        assertNotNull(pojo.bucketType);
        assertEquals(expected.toString(), pojo.bucketType);
    }
View Full Code Here

    }

    @Test
    public void setBucketTypeByteField()
    {
        final BinaryValue expected = BinaryValue.create("aBucketType");
        final PojoWithAnnotatedByteFields pojo = new PojoWithAnnotatedByteFields();
        AnnotationUtil.setBucketType(pojo, expected);
       
        assertNotNull(pojo.bucketType);
        assertArrayEquals(expected.getValue(), pojo.bucketType);
    }
View Full Code Here

    }
   
    @Test
    public void setBucketTypeStringMethod()
    {
        final BinaryValue expected = BinaryValue.create("aBucketType");
        final PojoWithAnnotatedMethods pojo = new PojoWithAnnotatedMethods();
        AnnotationUtil.setBucketType(pojo, expected);
       
        assertNotNull(pojo.bucketType);
        assertEquals(expected.toString(), pojo.bucketType);
    }
View Full Code Here

    }
   
    private void testListKey(String bucketType) throws InterruptedException, ExecutionException
    {
        final Namespace ns = new Namespace(bucketType, bucketName.toString() + "_2");
        final BinaryValue key = BinaryValue.unsafeCreate("my_key".getBytes());
        final String value = "{\"value\":\"value\"}";
       
        RiakObject rObj = new RiakObject().setValue(BinaryValue.create(value));
        Location location = new Location(ns, key);
        StoreOperation storeOp =
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.util.BinaryValue

Copyright © 2018 www.massapicom. 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.