@@ -35,23 +35,23 @@ class Validate {
3535 @ NullAndEmptySource
3636 void 설명이_비어있으면_안된다 (String description ) {
3737 BusinessException exception = assertThrows (BusinessException .class , () -> {
38- new Cheer (1L , DEFAULT_MEMBER , DEFAULT_STORE , description , "imageKey" );
38+ new Cheer (DEFAULT_MEMBER , DEFAULT_STORE , description , "imageKey" );
3939 });
4040
4141 assertThat (exception .getErrorCode ()).isEqualTo (BusinessErrorCode .INVALID_CHEER_DESCRIPTION );
4242 }
4343
4444 @ Test
4545 void 이미지_키는_null이_가능하다 () {
46- assertThatCode (() -> new Cheer (1L , DEFAULT_MEMBER , DEFAULT_STORE , "Great store!" , null ))
46+ assertThatCode (() -> new Cheer (DEFAULT_MEMBER , DEFAULT_STORE , "Great store!" , null ))
4747 .doesNotThrowAnyException ();
4848 }
4949
5050 @ ParameterizedTest
5151 @ ValueSource (strings = {"" , " " , "\t \n " })
5252 void 이미지_키는_비어있으면_안된다 (String imageKey ) {
5353 BusinessException exception = assertThrows (BusinessException .class , () -> {
54- new Cheer (1L , DEFAULT_MEMBER , DEFAULT_STORE , "Great store!" , "" );
54+ new Cheer (DEFAULT_MEMBER , DEFAULT_STORE , "Great store!" , imageKey );
5555 });
5656
5757 assertThat (exception .getErrorCode ()).isEqualTo (BusinessErrorCode .INVALID_CHEER_IMAGE_KEY );
0 commit comments