에러 메세지 No ParameterResolver registered for parameter [com.clone.instagram.domain.user.repository.UserRepository userRepository] in constructor [public com.clone.instagram.domain.user.service.UserServiceTest(com.clone.instagram.domain.user.repository.UserRepository,com.clone.instagram.domain.user.service.UserService)]. 원인 Junit5 테스트 코드에서 의존성이 주입되지 않았을때 발생하는 에러 해결방법 1. 테스트 클래스에 @SpringBootTest 테스트..
각각의 테스트를 실행하면 성공하지만, 전체 테스트를 돌리면 실패하는 이유? : Spring Context 를 공유하기 때문 //Expected size: 2 but was: 3 in: //[com.group.libraryapp.dto.user.response.UserResponse@69862a1, // com.group.libraryapp.dto.user.response.UserResponse@585718dd, // com.group.libraryapp.dto.user.response.UserResponse@5a644d75] //java.lang.AssertionError: 생성 테스트 - 조회 테스트 1. 최초 생성 테스트 : DB에 user 데이터 1명 추가 @Test fun saveUserTest(..
- Total
- Today
- Yesterday
- 문자열계산기
- MultipleBagFetchException
- java.lang.NullPointerException: Parameter specified as non-null is null
- ChatGPT
- FetchJoin
- 추상클래스
- insertOne
- Kotlin
- array
- Cannot construct instance of
- JPA
- MongoDB
- junit5
- 배열
- dto 클래스 생성자
- n+1
- 장애 대응
- insertMany
- document insert
- QueryDSL
- Java
- ?.let
- Spring Security
- Git
- addFilterBefore
- Linux
- checkout
- spring boot 3
- port
- 스프링오류
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |