Chapter 2: User-Facing Backend. Ticket: Paging

Hello everyone. I am facing issue with Paging validation on MFlix status UI page. Unit tests are passing when executed via maven, but after clicking Paging on status page I am getting “Paging: Did not receive the proper response when paging by cast”.
I searched forum briefly and other users suggested to change sorting order in search by cast method, but it didn’t work for me. Also tried to restart app and executed test multiple times. Would appreciate any help.

I am also facing the same error. Can anyone please suggest on this?

Hi @abhishek_sikka,

Please check the post here:


Issue was resolved after close inspection of MovieDao#getMoviesByCast(String sortKey …) method.
Somehow I managed to add sortKey parameter as a literal String :weary:

Correct way: Sorts.descending(sortKey);
I blame Dracula dark theme in intellJ :lying_face:

@Kanika I didn’t understood your point on the order. Could you please copy paste the code here?

@Stanislav_80665 That kind of issue isn’t there into my app.