diff --git a/src/test/java/com/philips/research/bombar/controller/ProjectsRouteTest.java b/src/test/java/com/philips/research/bombar/controller/ProjectsRouteTest.java index ec7b0f5..3c51062 100644 --- a/src/test/java/com/philips/research/bombar/controller/ProjectsRouteTest.java +++ b/src/test/java/com/philips/research/bombar/controller/ProjectsRouteTest.java @@ -119,7 +119,8 @@ void updatesProject() throws Exception { @Test void uploadsSpdxFile() throws Exception { - final var file = new MockMultipartFile("file", "Data".getBytes()); + // Filename necessary due to Spring bug: https://github.com/spring-projects/spring-framework/issues/26261 + final var file = new MockMultipartFile("file", "Filename", MediaType.TEXT_PLAIN_VALUE, "Data".getBytes()); mvc.perform(multipart(UPLOAD_SPDX_URL, PROJECT_ID).file(file)) .andExpect(status().isOk());