use of com.enonic.xp.portal.impl.error.ErrorHandlerScriptFactory in project xp by enonic.
the class ExceptionRendererImplTest method setup.
@BeforeEach
void setup() {
this.resourceService = mock(ResourceService.class);
this.contentService = mock(ContentService.class);
this.errorHandlerScriptFactory = mock(ErrorHandlerScriptFactory.class);
this.postProcessor = new MockPostProcessor();
this.renderer = new ExceptionRendererImpl(resourceService, errorHandlerScriptFactory, contentService, null, postProcessor, RunMode.DEV);
this.request = new PortalRequest();
final HttpServletRequest rawRequest = mock(HttpServletRequest.class);
this.request.setRawRequest(rawRequest);
}
Aggregations