From 1e40cf708a8e88327347863d69388f5a6760f19d Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Thu, 23 May 2024 10:30:25 +0200 Subject: [PATCH] fix unit tests --- ...HandlerImplImageFileTypesEnd2EndNextGenDynamicMediaTest.java | 2 ++ ...rImplImageFileTypesEnd2EndWebOptimizedImageDeliveryTest.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/test/java/io/wcm/handler/media/impl/MediaHandlerImplImageFileTypesEnd2EndNextGenDynamicMediaTest.java b/src/test/java/io/wcm/handler/media/impl/MediaHandlerImplImageFileTypesEnd2EndNextGenDynamicMediaTest.java index e46bb970..b8be0218 100644 --- a/src/test/java/io/wcm/handler/media/impl/MediaHandlerImplImageFileTypesEnd2EndNextGenDynamicMediaTest.java +++ b/src/test/java/io/wcm/handler/media/impl/MediaHandlerImplImageFileTypesEnd2EndNextGenDynamicMediaTest.java @@ -23,6 +23,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -43,6 +44,7 @@ @SuppressWarnings("java:S2699") // all tests have assertions class MediaHandlerImplImageFileTypesEnd2EndNextGenDynamicMediaTest extends MediaHandlerImplImageFileTypesEnd2EndTest { + @BeforeEach @Override void setUp() { MockNextGenDynamicMediaConfig nextGenDynamicMediaConfig = context.registerInjectActivateService(MockNextGenDynamicMediaConfig.class); diff --git a/src/test/java/io/wcm/handler/media/impl/MediaHandlerImplImageFileTypesEnd2EndWebOptimizedImageDeliveryTest.java b/src/test/java/io/wcm/handler/media/impl/MediaHandlerImplImageFileTypesEnd2EndWebOptimizedImageDeliveryTest.java index 6920a71c..94aaea5f 100644 --- a/src/test/java/io/wcm/handler/media/impl/MediaHandlerImplImageFileTypesEnd2EndWebOptimizedImageDeliveryTest.java +++ b/src/test/java/io/wcm/handler/media/impl/MediaHandlerImplImageFileTypesEnd2EndWebOptimizedImageDeliveryTest.java @@ -21,6 +21,7 @@ import static io.wcm.testing.mock.aem.dam.ngdm.MockAssetDelivery.getAssetId; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -38,6 +39,7 @@ @SuppressWarnings("java:S2699") // all tests have assertions class MediaHandlerImplImageFileTypesEnd2EndWebOptimizedImageDeliveryTest extends MediaHandlerImplImageFileTypesEnd2EndTest { + @BeforeEach @Override void setUp() { context.registerInjectActivateService(MockAssetDelivery.class);