diff --git a/src/test/java/com/example/codebase/controller/ArtworkControllerTest.java b/src/test/java/com/example/codebase/controller/ArtworkControllerTest.java index d97b26ed..0f87d300 100644 --- a/src/test/java/com/example/codebase/controller/ArtworkControllerTest.java +++ b/src/test/java/com/example/codebase/controller/ArtworkControllerTest.java @@ -180,7 +180,8 @@ public Artwork createOrLoadArtwork(int index, boolean isVisible, int mediaSize) } private byte[] createImageFile() throws IOException { - return "test".getBytes(); + File file = resourceLoader.getResource("classpath:test/img.jpg").getFile(); + return Files.readAllBytes(file.toPath()); } @WithMockCustomUser(username = "testid", role = "USER")