From 0fa769079205b91bb8d4906c124131e30c3bb841 Mon Sep 17 00:00:00 2001 From: Serhii Plyhun Date: Wed, 23 Oct 2024 16:20:23 +0200 Subject: [PATCH] Regression --- .../com/gentics/mesh/image/ImgscalrImageManipulatorTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tests-service-image-imgscalr/src/main/java/com/gentics/mesh/image/ImgscalrImageManipulatorTest.java b/tests/tests-service-image-imgscalr/src/main/java/com/gentics/mesh/image/ImgscalrImageManipulatorTest.java index e831646e1d..e2b09b6eee 100644 --- a/tests/tests-service-image-imgscalr/src/main/java/com/gentics/mesh/image/ImgscalrImageManipulatorTest.java +++ b/tests/tests-service-image-imgscalr/src/main/java/com/gentics/mesh/image/ImgscalrImageManipulatorTest.java @@ -32,6 +32,7 @@ import org.codehaus.jettison.json.JSONObject; import org.junit.Before; import org.junit.Test; +import org.mockito.Mockito; import com.gentics.mesh.core.data.binary.HibBinary; import com.gentics.mesh.core.data.storage.BinaryStorage; @@ -81,7 +82,7 @@ public void testResize() throws Exception { HibBinary hb = createMockedBinary(path); try { - when(mockedBinaryStorage.openBlockingStream(null)).then(uuid -> ImageTestUtil.class.getResourceAsStream(path)); + when(mockedBinaryStorage.openBlockingStream(Mockito.any())).then(uuid -> ImageTestUtil.class.getResourceAsStream(path)); } catch (IOException e) { throw new RuntimeException(e); }