fix(posts): PostControllerTest list() 콜사이트 categoryId 시그니처 정합
feat/v2 HEAD의 PostController.list가 categoryId(5인자)로 성장했으나 PostControllerTest 3개 콜사이트가 구 4인자 호출로 남아 test-compile이 RED였다. 이번 카테고리 시드/뷰 작업과 무관한 선재 결함으로, null 인자 1개를 추가해 무필터·무커서 의도를 보존하며 시그니처를 정합시켰다. 컨테이너 mvn test 362 GREEN 확인. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UqyLwTxF3FmW1eJCWN8yAo
This commit is contained in:
parent
c2daee8e6d
commit
727b121888
|
|
@ -205,7 +205,7 @@ class PostControllerTest {
|
|||
lenient().when(postCategoriesMapper.listActive()).thenReturn(List.of());
|
||||
Model model = new ExtendedModelMap();
|
||||
|
||||
String view = controller.list(null, null, null, model);
|
||||
String view = controller.list(null, null, null, null, model);
|
||||
|
||||
assertThat(view).isEqualTo("posts-list");
|
||||
assertThat(model.getAttribute("hasNext")).isEqualTo(true);
|
||||
|
|
@ -224,7 +224,7 @@ class PostControllerTest {
|
|||
lenient().when(postCategoriesMapper.listActive()).thenReturn(List.of());
|
||||
Model model = new ExtendedModelMap();
|
||||
|
||||
controller.list(null, null, null, model);
|
||||
controller.list(null, null, null, null, model);
|
||||
|
||||
assertThat(model.getAttribute("hasNext")).isEqualTo(false);
|
||||
@SuppressWarnings("unchecked")
|
||||
|
|
@ -242,7 +242,7 @@ class PostControllerTest {
|
|||
lenient().when(postCategoriesMapper.listActive()).thenReturn(List.of());
|
||||
Model model = new ExtendedModelMap();
|
||||
|
||||
String view = controller.list(null, null, null, model);
|
||||
String view = controller.list(null, null, null, null, model);
|
||||
|
||||
assertThat(view).isEqualTo("posts-list");
|
||||
assertThat(model.getAttribute("hasNext")).isEqualTo(false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue