Search in sources :

Example 1 with ErrorHandlerScriptFactory

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);
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) ResourceService(com.enonic.xp.resource.ResourceService) ContentService(com.enonic.xp.content.ContentService) ErrorHandlerScriptFactory(com.enonic.xp.portal.impl.error.ErrorHandlerScriptFactory) PortalRequest(com.enonic.xp.portal.PortalRequest) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ContentService (com.enonic.xp.content.ContentService)1 PortalRequest (com.enonic.xp.portal.PortalRequest)1 ErrorHandlerScriptFactory (com.enonic.xp.portal.impl.error.ErrorHandlerScriptFactory)1 ResourceService (com.enonic.xp.resource.ResourceService)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1