I've been looking for hours to find a way to test if a route is correct with play.
I mean, for exemple
Is the GET request to
localhost:9000/test
actually return200 OK
?
I was not able to find any working example.
I've been looking for hours to find a way to test if a route is correct with play.
I mean, for exemple
Is the GET request to
localhost:9000/test
actually return200 OK
?
I was not able to find any working example.
I use Play's WS (Web Services) library to achieve this. For Example:
Notice the calls to
assertThat(wsResponse1.getStatus()).isEqualTo(OK);
Hope that helps. Leave a comment if you need further clarification.