Caused by: java.lang.IllegalStateException: SpringJUnit4ClassRunner requires JUnit 4.12 or higher.

SEOP·2023년 4월 9일
0

ERROR

Caused by: java.lang.IllegalStateException: SpringJUnit4ClassRunner requires JUnit 4.12 or higher.

Junit 4.12 혹은 더 높은 버전을 사용하면 된다.

    <!-- Test -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.7</version>
      <scope>test</scope>
    </dependency>

나 같은 경우는 pom.xml에 4.7버전이 주입되어 있었다.

    <!-- Test -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>

4.12버전으로 수정해주었다.

profile
응애 나 애기 개발자

0개의 댓글