Package net.hamnaberg.json

Examples of net.hamnaberg.json.Template


        assertNotNull("Template was null", collection.getTemplate());
    }

    @Test
    public void parseOnlyTemplate() throws IOException {
        Template template = parser.parseTemplate(new InputStreamReader(getClass().getResourceAsStream("/only-template.json")));
        assertNotNull("Template was null", template);
        Map<String,Property> properties = template.getDataAsMap();
        assertThat(properties.keySet(), CoreMatchers.hasItems("full-name", "email", "blog", "avatar"));
    }
View Full Code Here

TOP

Related Classes of net.hamnaberg.json.Template

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.