Search in sources :

Example 1 with PortalUrlServiceImpl

use of com.enonic.xp.portal.impl.url.PortalUrlServiceImpl in project xp by enonic.

the class TextRendererTest method before.

@BeforeEach
public void before() {
    portalRequest = new PortalRequest();
    portalResponse = PortalResponse.create().build();
    PortalUrlServiceImpl portalUrlService = new PortalUrlServiceImpl();
    portalUrlService.setMacroService(new MockMacroService());
    portalUrlService.setStyleDescriptorService(new MockStyleDescriptorService());
    service = portalUrlService;
    portalRequest.setMode(RenderMode.LIVE);
}
Also used : PortalUrlServiceImpl(com.enonic.xp.portal.impl.url.PortalUrlServiceImpl) PortalRequest(com.enonic.xp.portal.PortalRequest) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

PortalRequest (com.enonic.xp.portal.PortalRequest)1 PortalUrlServiceImpl (com.enonic.xp.portal.impl.url.PortalUrlServiceImpl)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1