Package com.omertron.themoviedbapi.model

Examples of com.omertron.themoviedbapi.model.StatusCode


        LOG.info("Body: {}", jsonBody);
        URL url = apiUrl.buildUrl();
        String webpage = requestWebPage(url, jsonBody);

        try {
            StatusCode status = mapper.readValue(webpage, StatusCode.class);
            LOG.info("Status: {}", status);
            int code = status.getStatusCode();
            return code == POST_SUCCESS_STATUS_CODE;
        } catch (IOException ex) {
            LOG.warn("Failed to post movie rating: {}", ex.getMessage(), ex);
            throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, url, ex);
        }
View Full Code Here


        // now remove the movie
        tmdb.removeMovieFromList(SESSION_ID_APITESTS, listId, movieID);
        assertEquals(tmdb.getList(listId).getItemCount(), 0);

        // delete the test list
        StatusCode statusCode = tmdb.deleteMovieList(SESSION_ID_APITESTS, listId);
        assertEquals(statusCode.getStatusCode(), 13);
    }
View Full Code Here

TOP

Related Classes of com.omertron.themoviedbapi.model.StatusCode

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.