Here my code:
public List getMoviesByGenre(String sortKey, int limit, int skip, String… genres) {
// query filter
Bson castFilter = Filters.in(“genres”, genres);
// sort key
Bson sort = Sorts.descending(sortKey);
List<Document> movies = new ArrayList<>();
// TODO > Ticket: Paging - implement the necessary cursor methods to support simple
// pagination like skip and limit in the code below
moviesCollection.find(castFilter).sort(sort).skip(skip).limit(limit).iterator()
.forEachRemaining(movies::add);
return movies;
}
The server returned json data with code 200.
My unit tests was executed with success.
I don’t understand why i can’t have the code of paging test on status page.
Thank you for your help