mercredi 15 mai 2019

Lagom service test

Our team start to use the lagom framework to create microservice. I try to create the service test (the service consume the relational database). I did read the document about the service testing https://www.lagomframework.com/documentation/1.5.x/java/Test.html. However there is no database involved.

As my understanding, the ServiceTest utilities start a fake service and run your service in it. However how to start a the database server? use withJdbc() to setup? Also need to create the test data? I'm new to lagom, can anyone provide some sample java service test code?

Aucun commentaire:

Enregistrer un commentaire