@DataJpaTest can not be resolved to a type

0

I'm doing a unit test, but the annotation @DataJpaTest is not being recognized, my pom.xml contains the following dependencies for JUnit:

<dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-test</artifactId>
           <scope>test</scope>
        </dependency>
        <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <scope>test</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa -->
        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <scope>test</scope>

Does anyone know what might be missing?

    
asked by anonymous 23.08.2018 / 17:55

0 answers