From a85b513401e1881848977710bfda0a6962f72acd Mon Sep 17 00:00:00 2001 From: david g Date: Thu, 17 Oct 2024 17:03:06 -0400 Subject: [PATCH] Changed test to cover another use case --- .../errorpagehandler/impl/ErrorPageHandlerImplTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundle/src/test/java/com/adobe/acs/commons/errorpagehandler/impl/ErrorPageHandlerImplTest.java b/bundle/src/test/java/com/adobe/acs/commons/errorpagehandler/impl/ErrorPageHandlerImplTest.java index a9b19211cd..03fc0409fd 100644 --- a/bundle/src/test/java/com/adobe/acs/commons/errorpagehandler/impl/ErrorPageHandlerImplTest.java +++ b/bundle/src/test/java/com/adobe/acs/commons/errorpagehandler/impl/ErrorPageHandlerImplTest.java @@ -160,7 +160,8 @@ public void testUriExclusion_defaults_site_false() { @Test public void testUriExclusion_defaults_dam_false() { - context.registerInjectActivateService(new ErrorPageHandlerImpl()); + context.registerInjectActivateService(new ErrorPageHandlerImpl(), "error-page.uri-exclusions", new String[]{"^/whatever(/.*)?"}); + ; ErrorPageHandlerImpl errorPageHandlerService = (ErrorPageHandlerImpl) context.getService(ErrorPageHandlerService.class); context.request().setPathInfo("/content/dam/test/file.png");