Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
Tags
- Chat GPT
- git cannot identify version of git executable
- 친트럼프
- 흉기살해
- 5회 인증
- 챗지피티
- 여러 개
- sourceSet
- PHP Storm
- Linux 패키지 관리자
- Github 등록
- php
- Location Permission
- Github Token
- Android Studio
- InvalidTestClassError
- nextFocusDown
- mac 패키지 관리자
- git
- 챗GPT
- TextView 일부분
- codeigniter
- junit
- 일치단결
- XML Opacity
- MySQL
- Execution failed for task ':test'.
- 3차 소환조사
- 다음으로 이동
- AWS
Archives
- Today
- Total
128june
[Spring] JUnit Test 오류 - org.junit.runners.model.InvalidTestClassError 본문
개발/Spring
[Spring] JUnit Test 오류 - org.junit.runners.model.InvalidTestClassError
128june 2022. 7. 18. 12:18반응형
JUnit test를 진행하던 도중, org.junit.runners.model.InvalidTestClassError 가 발생하였다.
이는 import 된 패키지가 jupiter.api.Test 일 때 발생하는 오류이다.
import org.junit.jupiter.api.Test;
위 코드를 아래와 같이 수정해주면 오류가 없어진다.
import org.junit.Test;
출처
https://gksdudrb922.tistory.com/34
JUnit Test error - No runnable Methods
Spring JPA를 사용한 Test시 아래와 같은 오류가 뜨는 경우가 있다. org.junit.runners.model.InvalidTestClassError: Invalid test class 'jpabook.jpashop.service.MemberServiceTest': 1. No runnable methods..
gksdudrb922.tistory.com
반응형
'개발 > Spring' 카테고리의 다른 글
| [Spring] Execution failed for task ':test'. (0) | 2022.07.18 |
|---|
Comments