Package halfpipe.consul.model

Examples of halfpipe.consul.model.KeyValue


    public void testGet() throws IOException {
        List<KeyValue> values = kvClient.getKeyValue(KEY);
        assertNotNull(values, "values is null");
        assertFalse(values.isEmpty(), "Values is null");
        assertTrue(values.size() == 1, "Values is not size 1");
        KeyValue keyValue = values.get(0);
        //TODO: how to deal with this?
        String decoded = objectMapper.readValue(keyValue.getDecoded(), String.class);

        assertEquals(decoded, VALUE);
    }
View Full Code Here

TOP

Related Classes of halfpipe.consul.model.KeyValue

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.