-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSIV false #461
OSIV false #461
Changes from all commits
d404a3a
081941c
32e0402
4190d07
39cf630
adc5f68
486f196
ddc82df
a89e4cd
e0ea147
dc2701d
b6f77e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.project.yozmcafe.controller; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.PARAMETER) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface LoginUser { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,5 @@ spring.flyway.baseline-version=20230901153300 | |
spring.flyway.baseline-on-migrate=true | ||
spring.flyway.out-of-order=true | ||
spring.jpa.properties.hibernate.default_batch_fetch_size=1000 | ||
spring.jpa.open-in-view=false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 굿 맨 |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,7 +367,6 @@ private ResponseFieldsSnippet getCafeResponseFields() { | |
); | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 오 두 줄 개행 삭제 패치인가요?? 좋아요 |
||
|
||
private ResponseFieldsSnippet getCafeRankResponseFields() { | ||
return responseFields( | ||
fieldWithPath("[].rank").description("카페 순위"), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,14 +37,15 @@ class CafeServiceTest extends BaseTest { | |
@DisplayName("로그인 된 사용자의 안본 카페 목록을 조회한다.") | ||
void getCafesForLoginMember() { | ||
//given | ||
final Member member = memberRepository.save(new Member("1", "폴로", "img")); | ||
final Member member = new Member("1", "폴로", "img"); | ||
final Cafe cafe1 = cafeRepository.save(Fixture.getCafe("카페1", "주소1", 10)); | ||
final Cafe cafe2 = cafeRepository.save(Fixture.getCafe("카페2", "주소2", 11)); | ||
member.addUnViewedCafes(Arrays.asList(cafe1, cafe2)); | ||
member.updateLikedCafesBy(cafe1, true); | ||
memberRepository.save(member); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
//when | ||
final List<CafeResponse> result = cafeService.getCafesForLoginMember(member, 5); | ||
final List<CafeResponse> result = cafeService.getCafesForLoginMember(member.getId(), 5); | ||
|
||
//then | ||
assertAll( | ||
|
@@ -163,7 +164,6 @@ void getCafesOrderByLikeCountWhenPageOutFail() { | |
void getCafeById() { | ||
//given | ||
final Cafe savedCafe1 = cafeRepository.save(Fixture.getCafe("카페1", "주소1", 10)); | ||
final Cafe savedCafe2 = cafeRepository.save(Fixture.getCafe("카페2", "주소2", 11)); | ||
|
||
//when | ||
final CafeResponse result = cafeService.getCafeById(savedCafe1.getId()); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
나왔던 여러가지 방법 중 이게 가장 심플하고 좋네요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
더 좋은 방법이 있으면 좋을 것 같기는 해요.
점점 한 문제를 해결하기위해서 일부분만 수정되는 모습이 현재까지 저희가 구현해온 코드를 해치는게 아닐까 라는 의문과 걱정이 들어서요 !