Skip to content

Repositório de estudo do curso de estratégias para gerenciar massa de dados em testes + DBUnit

Notifications You must be signed in to change notification settings

thiago-castilho/cursoMassa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Português - BR · English - US

Quickstart

Prerequisites

Configuring DBUnit

  1. Create a database named dbunit on PostgreSQL
  2. Open the project, go to src/main/java/../utils/ConnectionFactory and configure your database connection
  3. 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

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.

About

Repositório de estudo do curso de estratégias para gerenciar massa de dados em testes + DBUnit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages