1212import com .example .solidconnection .siteuser .fixture .SiteUserFixture ;
1313import com .example .solidconnection .support .TestContainerSpringBootTest ;
1414import java .util .Comparator ;
15- import java .util .List ;
1615import java .util .Map ;
1716import java .util .stream .Collectors ;
1817import org .junit .jupiter .api .DisplayName ;
@@ -51,7 +50,7 @@ class 전체_소식지를_조회한다 {
5150 News news3 = newsFixture .소식지 (author2 .getId ());
5251
5352 // when
54- NewsListResponse response = newsQueryService .findAllNews ( null );
53+ NewsListResponse response = newsQueryService .findNews ( null , null );
5554
5655 // then
5756 assertAll (
@@ -82,7 +81,7 @@ class 전체_소식지를_조회한다 {
8281 likedNewsFixture .소식지_좋아요 (news3 .getId (), loginUser .getId ());
8382
8483 // when
85- NewsListResponse response = newsQueryService .findAllNews (loginUser .getId ());
84+ NewsListResponse response = newsQueryService .findNews (loginUser .getId (), null );
8685
8786 // then
8887 assertAll (
@@ -105,7 +104,7 @@ class 전체_소식지를_조회한다 {
105104 @ Test
106105 void 소식지가_없으면_빈_목록을_반환한다 () {
107106 // when
108- NewsListResponse response = newsQueryService .findAllNews ( null );
107+ NewsListResponse response = newsQueryService .findNews ( null , null );
109108
110109 // then
111110 assertThat (response .newsResponseList ()).isEmpty ();
@@ -127,7 +126,7 @@ class 특정_사용자의_소식지를_조회한다 {
127126 newsFixture .소식지 (otherUser .getId ());
128127
129128 // when
130- NewsListResponse response = newsQueryService .findNewsByAuthorId (null , author .getId ());
129+ NewsListResponse response = newsQueryService .findNews (null , author .getId ());
131130
132131 // then
133132 assertAll (
@@ -157,7 +156,7 @@ class 특정_사용자의_소식지를_조회한다 {
157156 likedNewsFixture .소식지_좋아요 (news3 .getId (), loginUser .getId ());
158157
159158 // when
160- NewsListResponse response = newsQueryService .findNewsByAuthorId (loginUser .getId (), author .getId ());
159+ NewsListResponse response = newsQueryService .findNews (loginUser .getId (), author .getId ());
161160
162161 // then
163162 assertAll (
0 commit comments