fix(test): BibimbapApplicationTests에 GameLikesMapper @MockBean 보강
GameController 가 GameLikesMapper 를 주입받으나(B3 좋아요 영속화) 테스트 컨텍스트 @MockBean 목록에 누락돼 contextLoads 가 NoSuchBeanDefinitionException 으로 실패하던 사전결함 수정. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K3FeMrbtxfTScjrwUukyHD
This commit is contained in:
parent
4c16d16dd9
commit
5e8816ed4a
|
|
@ -4,6 +4,7 @@ import com.pandoli365.bibimbap.badge.BadgeService;
|
||||||
import com.pandoli365.bibimbap.badge.ReputationService;
|
import com.pandoli365.bibimbap.badge.ReputationService;
|
||||||
import com.pandoli365.bibimbap.mapper.BadgesMapper;
|
import com.pandoli365.bibimbap.mapper.BadgesMapper;
|
||||||
import com.pandoli365.bibimbap.mapper.GameCommentsMapper;
|
import com.pandoli365.bibimbap.mapper.GameCommentsMapper;
|
||||||
|
import com.pandoli365.bibimbap.mapper.GameLikesMapper;
|
||||||
import com.pandoli365.bibimbap.mapper.GameReviewAxesMapper;
|
import com.pandoli365.bibimbap.mapper.GameReviewAxesMapper;
|
||||||
import com.pandoli365.bibimbap.mapper.GameReviewStatsMapper;
|
import com.pandoli365.bibimbap.mapper.GameReviewStatsMapper;
|
||||||
import com.pandoli365.bibimbap.mapper.GameReviewsMapper;
|
import com.pandoli365.bibimbap.mapper.GameReviewsMapper;
|
||||||
|
|
@ -60,6 +61,10 @@ class BibimbapApplicationTests {
|
||||||
@MockBean
|
@MockBean
|
||||||
private GamesMapper gamesMapper;
|
private GamesMapper gamesMapper;
|
||||||
|
|
||||||
|
// B3 좋아요 영속화: GameController 가 GameLikesMapper 주입 → contextLoads 안정화(직전 세션 누락 보강)
|
||||||
|
@MockBean
|
||||||
|
private GameLikesMapper gameLikesMapper;
|
||||||
|
|
||||||
@MockBean
|
@MockBean
|
||||||
private GameCommentsMapper gameCommentsMapper;
|
private GameCommentsMapper gameCommentsMapper;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue