Skip to content

Commit

Permalink
Changed test to cover another use case
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgonzalez committed Oct 17, 2024
1 parent 543d732 commit a85b513
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a85b513

Please sign in to comment.