Running DataJpaTest with PostgreSQL
<p>I wrote a jpa test with Spring Boot as explained here:
<a href="https://spring.io/blog/2016/04/15/testing-improvements-in-spring-boot-1-4" rel="noreferrer">https://spring.io/blog/2016/04/15/testing-improvements-in-spring-boot-1-4</a></p>

<pre><code>@RunWith(SpringRunner.class)
@DataJpaTest
public class UserRepositoryTests {

@Autowired
private TestEntityManager entityManager;

...
}
</code></pre>

<p>This configures a in-memory db by default. How can I configure this test, that it uses my local PostgreSQL db?</p>