Running DataJpaTest with PostgreSQL
@DataJpaTest
contains @RunWith(SpringRunner.class)
@DataJpaTest
@AutoConfigureTestDatabase(replace=Replace.NONE)
It's enough. Good luck!
If you want to use the same datasource as your regular application you can use:
@RunWith(SpringRunner.class)
@DataJpaTest
@AutoConfigureTestDatabase(replace=Replace.NONE)