Package net.hamnaberg.json

Examples of net.hamnaberg.json.Query


    public void parseQueriesCollection() throws IOException {
        Collection collection = parser.parse(new InputStreamReader(getClass().getResourceAsStream("/queries.json")));
        assertNotNull(collection);
        assertEquals(URI.create("http://example.org/friends/"), collection.getHref().orElse(null));
        assertEquals(1, collection.getQueries().size());
        Query query = collection.getQueries().get(0);
        assertEquals("search", query.getData().get(0).get().getName());
    }
View Full Code Here

TOP

Related Classes of net.hamnaberg.json.Query

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.