- Create a database named dbunit on PostgreSQL
- Open the project, go to src/main/java/../utils/ConnectionFactory and configure your database connection
- Go to src/main/java/../utils/MontarAmbiente and run as JavaApplication
Check that your database was created correctly
If you need to reset your database, just execute step 3 again
Strategy 1 uses the CRUD method, which means: Create; Read/Retrieve; Update; Delete;
For this strategy, we use the @FixMethodOrder(MethodSorters.NAME_ASCENDING)
annotation from the JUnit library. With this class, we should name the methods similar to this example: test_1_create
so that the tests are executed in the desired order.