Skip to content

Commit

Permalink
hotfix : LunchController 컨트롤러 테스트 컨텍스트 생성 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
moonn6pence committed Nov 17, 2023
1 parent f26a92c commit baf7600
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import java.util.Objects;
import java.util.stream.Collectors;

@RequiredArgsConstructor
@Service
@RequiredArgsConstructor
public class LunchScrapService {

private final LunchRepository lunchRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.ssafy.ssafsound.domain.lunch.service;

import com.ssafy.ssafsound.domain.lunch.service.FreshmealInfoProvider;
import com.ssafy.ssafsound.domain.lunch.service.ScrapInfoProvider;
import com.ssafy.ssafsound.domain.lunch.service.WelstoryInfoProvider;
import org.springframework.stereotype.Component;

import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.ssafy.ssafsound.domain.comment.service.CommentService;
import com.ssafy.ssafsound.domain.lunch.controller.LunchController;
import com.ssafy.ssafsound.domain.lunch.service.LunchPollService;
import com.ssafy.ssafsound.domain.lunch.service.LunchScrapService;
import com.ssafy.ssafsound.domain.lunch.service.LunchService;
import com.ssafy.ssafsound.domain.member.controller.MemberController;
import com.ssafy.ssafsound.domain.member.service.MemberService;
Expand Down Expand Up @@ -142,6 +143,9 @@ public class ControllerTest {
@MockBean
protected SemesterConstantProvider semesterConstantProvider;

@MockBean
protected LunchScrapService lunchScrapService;

protected static final Cookie ACCESS_TOKEN = new Cookie.Builder("accessToken", "accessTokenValue").build();
protected static final Cookie REFRESH_TOKEN = new Cookie.Builder("refreshToken", "refreshTokenValue").build();

Expand Down

0 comments on commit baf7600

Please sign in to comment.