Package de.devbliss.apitester

Examples of de.devbliss.apitester.ApiResponse


       
        sayNextSection("Retrieving articles for a user (Json)");
       
        say("Retrieving all articles of a user is a GET request to " + GET_ARTICLES_URL);
       
        ApiResponse apiResponse = makeGetRequest(buildUri(GET_ARTICLES_URL.replace("{username}", "bob@gmail.com")));

        ArticlesDto articlesDto = getGsonWithLongToDateParsing().fromJson(apiResponse.payload, ArticlesDto.class);

        assertEqualsAndSay(3, articlesDto.articles.size(), "We get back all 3 articles of that user");
View Full Code Here

TOP

Related Classes of de.devbliss.apitester.ApiResponse

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.