-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ProfileImageControllerTest 픽스처 추가 및 리팩토링
- Loading branch information
Showing
2 changed files
with
39 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...c/test/java/com/ddang/ddang/image/presentation/fixture/ProfileImageControllerFixture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.ddang.ddang.image.presentation.fixture; | ||
|
||
import com.ddang.ddang.configuration.CommonControllerSliceTest; | ||
import org.springframework.core.io.ByteArrayResource; | ||
import org.springframework.core.io.Resource; | ||
|
||
@SuppressWarnings("NonAsciiCharacters") | ||
public class ProfileImageControllerFixture extends CommonControllerSliceTest { | ||
|
||
protected byte[] 이미지_파일_바이트 = "이것은 이미지 파일의 바이트 코드입니다.".getBytes(); | ||
protected Resource 이미지_파일_리소스 = new ByteArrayResource(이미지_파일_바이트); | ||
protected Long 프로필_이미지_아이디 = 1L; | ||
protected Long 존재하지_않는_프로필_이미지_아이디 = -999L; | ||
protected Long 경매_이미지_아이디 = 1L; | ||
protected Long 존재하지_않는_경매_이미지_아이디 = -999L; | ||
} |