You need to add junit library to maven depedencies. Then. you need to add the services for all your modules, which will do create, update, detele, read operations.
Tests should execute by signle commands mvn test.
Importact. You should add the additional hibernate congifuration for in test resources, which will use test database.
There, you should have two database: one production, and another for tests.
You need to add junit library to maven depedencies. Then. you need to add the services for all your modules, which will do create, update, detele, read operations. Tests should execute by signle commands mvn test. Importact. You should add the additional hibernate congifuration for in test resources, which will use test database. There, you should have two database: one production, and another for tests.