In this blog, I am going to explain how to write unit test cases for routes in Akka Http.
First and foremost, the test cases should not hit our backend logic — remember that we are only testing our routes, routes basically form the controller layer in our application. They control the request/response cycle. They tell which business logic should respond to the request and send the control to the corresponding business layer logic. We must always follow best coding practices while defining our routes.
from DZone.com Feed https://ift.tt/2Q1szw2
No comments:
Post a Comment