File tree Expand file tree Collapse file tree
src/test/java/com/back/api/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -312,4 +312,6 @@ tasks.named("clean") {
312312// checkstyleMain은 compileTestJava 이후에 실행
313313tasks.named< org.gradle.api.plugins.quality.Checkstyle > (" checkstyleMain" ) {
314314 dependsOn(tasks.named(" compileTestJava" ))
315+ // QueryDSL generated 폴더 제외 (src/main/generated 기준 상대 경로)
316+ exclude(" com/back/**/entity/Q*.java" )
315317}
Original file line number Diff line number Diff line change 66import org .junit .jupiter .api .Test ;
77import org .springframework .beans .factory .annotation .Autowired ;
88import org .springframework .boot .test .context .SpringBootTest ;
9+ import org .springframework .context .annotation .Import ;
910import org .springframework .test .context .ActiveProfiles ;
1011import org .springframework .transaction .annotation .Transactional ;
1112
1415import com .back .domain .auth .repository .ActiveSessionRepository ;
1516import com .back .domain .user .entity .User ;
1617import com .back .domain .user .entity .UserRole ;
18+ import com .back .global .config .SecurityConfig ;
1719import com .back .global .error .code .AuthErrorCode ;
1820import com .back .global .error .exception .ErrorException ;
1921import com .back .global .security .JwtProvider ;
2325@ SpringBootTest
2426@ ActiveProfiles ("test" )
2527@ Transactional
28+ @ Import (SecurityConfig .class ) // UserHelper에서 PasswordEncoder 주입을 위해 필요
2629class TokenTypeMismatchTest {
2730
2831 @ Autowired
You can’t perform that action at this time.
0 commit comments