title: Spring Boot @DataJpaTest stuck at HHH000400: Using dialect: org.hibernate.dialect.Oracle12cDialect
body: <p>I have a JUnit 5 test that isn't working, it gets stuck as shown below:</p>
  
  <pre><code>2020-04-03 16:53:23.207  INFO 2788 --- [           main] .i.p.d.r.CustomerReferenceRepositoryTest : 
  No active profile set, falling back to default profiles: default
  2020-04-03 16:53:24.153  INFO 2788 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : 
  Bootstrapping Spring Data JPA repositories in DEFAULT mode.
  2020-04-03 16:53:24.590  INFO 2788 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : 
  Finished Spring Data repository scanning in 372ms. Found 8 JPA repository interfaces.
  2020-04-03 16:53:26.078  INFO 2788 --- [           main] com.zaxxer.hikari.HikariDataSource       : 
  HikariPool-1 - Starting...
  2020-04-03 16:53:27.667  INFO 2788 --- [           main] com.zaxxer.hikari.HikariDataSource       : 
  HikariPool-1 - Start completed.
  2020-04-03 16:53:27.997  INFO 2788 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : 
  HHH000204: Processing PersistenceUnitInfo [name: default]
  2020-04-03 16:53:28.392  INFO 2788 --- [           main] org.hibernate.Version                    : 
  HHH000412: Hibernate ORM core version 5.4.12.Final
  2020-04-03 16:53:28.866  INFO 2788 --- [           main] o.hibernate.annotations.common.Version   : 
  HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
  2020-04-03 16:53:29.180  INFO 2788 --- [           main] org.hibernate.dialect.Dialect            : 
  HHH000400: Using dialect: org.hibernate.dialect.Oracle12cDialect
  </code></pre>
  
  <p>The test is annotated like this:</p>
  
  <pre><code>@DataJpaTest
  @AutoConfigureTestDatabase(replace = Replace.NONE)
  @ContextConfiguration(classes = TestDALConfig.class)
  class CustomerReferenceRepositoryTest {
  </code></pre>
  
  <p>The test gets stuck and when I stop it manually I get this error messsage:</p>
  
  <p>No tests found with test runner 'JUnit 5'</p>
  
  <p>The test it self is very simple:</p>
  
  <pre><code>@Test
  public void notNull() {
      assertThat(customerReferenceRepository).isNotNull();
  }
  </code></pre>
  
  <p>The complete unit test</p>
  
  <pre><code>package &lt;removed&gt;.payment.dal.repository;
  
  import static org.assertj.core.api.Assertions.assertThat;
  
  import org.junit.jupiter.api.Test;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
  import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase.Replace;
  import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
  import org.springframework.test.context.ContextConfiguration;
  
  import aero.sita.pts.ir.payment.config.TestDALConfig;
  
  @DataJpaTest
  @AutoConfigureTestDatabase(replace = Replace.NONE)
  @ContextConfiguration(classes = TestDALConfig.class)
  class CustomerReferenceRepositoryTest {
  
      @Autowired
      private CustomerReferenceRepository customerReferenceRepository;
  
      public CustomerReferenceRepositoryTest() {
          super();
      }
  
      @Test
      public void notNull() {
          assertThat(customerReferenceRepository).isNotNull();
      }
  
  }
  </code></pre>
  
  <p>The maven pom</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.2.6.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;artifactId&gt;payment-dal-api&lt;/artifactId&gt;
      &lt;name&gt;payment-dal-api&lt;/name&gt;
      &lt;description&gt;payment-dal-api&lt;/description&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;maven-jar-plugin.version&gt;3.1.1&lt;/maven-jar-plugin.version&gt;
          &lt;ojdbc7.version&gt;12.1.0.2&lt;/ojdbc7.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.oracle&lt;/groupId&gt;
              &lt;artifactId&gt;ojdbc7&lt;/artifactId&gt;
              &lt;version&gt;${ojdbc7.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.junit.vintage&lt;/groupId&gt;
                      &lt;artifactId&gt;junit-vintage-engine&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>TestDALConfig</p>
  
  <pre><code>@Configuration
  @EnableJpaRepositories(basePackageClasses=ConfigRepository.class)
  public class TestDALConfig {
  
      public TestDALConfig() {
          super();
      }
  }
  </code></pre>
  
  <p>CustomerReferenceRepository </p>
  
  <pre><code>import org.springframework.data.repository.PagingAndSortingRepository;
  import org.springframework.stereotype.Repository;
  import org.springframework.transaction.annotation.Propagation;
  import org.springframework.transaction.annotation.Transactional;
  
  import aero.sita.pts.ir.payment.dal.dto.CustomerReferenceDTO;
  
  @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  @Repository
  public interface CustomerReferenceRepository extends PagingAndSortingRepository&lt;CustomerReferenceDTO, Long&gt; {
  
  }
  </code></pre>
  
  <p>Can anyone shed some light on this?
  Thanks</p>