Skip to content

Commit 571a7dd

Browse files
committed
test: ImageUtils 에러 처리 개선
1 parent 5fcb770 commit 571a7dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/eatda/util/ImageUtils.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77

88
public final class ImageUtils {
99

10+
private static final String TEST_IMAGE_PATH = "classpath:test/test-image.png";
11+
1012
private ImageUtils() {
1113
}
1214

1315
public static File getTestImage() {
1416
try {
15-
return getFile("classpath:test/test-image.png");
17+
return getFile(TEST_IMAGE_PATH);
1618
} catch (FileNotFoundException e) {
17-
throw new RuntimeException(e);
19+
throw new RuntimeException("테스트 이미지 파일을 찾을 수 없습니다: " + TEST_IMAGE_PATH, e);
1820
}
1921
}
2022
}

0 commit comments

Comments
 (0)