Search in sources :

Example 1 with MacroDescriptorService

use of com.enonic.xp.macro.MacroDescriptorService in project xp by enonic.

the class MacroInstructionTest method setUp.

@BeforeEach
public void setUp() {
    macroDescriptorService = Mockito.mock(MacroDescriptorService.class);
    macroProcessorFactory = Mockito.mock(MacroProcessorFactory.class);
    macroInstruction = new MacroInstruction();
    macroInstruction.setMacroDescriptorService(macroDescriptorService);
    macroInstruction.setMacroProcessorFactory(macroProcessorFactory);
    portalRequest = new PortalRequest();
    Site site = createSite("site-id", "site-name", "myapplication:content-type");
    portalRequest.setSite(site);
    portalRequest.setContent(site);
}
Also used : Site(com.enonic.xp.site.Site) MacroDescriptorService(com.enonic.xp.macro.MacroDescriptorService) MacroProcessorFactory(com.enonic.xp.portal.macro.MacroProcessorFactory) PortalRequest(com.enonic.xp.portal.PortalRequest) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

MacroDescriptorService (com.enonic.xp.macro.MacroDescriptorService)1 PortalRequest (com.enonic.xp.portal.PortalRequest)1 MacroProcessorFactory (com.enonic.xp.portal.macro.MacroProcessorFactory)1 Site (com.enonic.xp.site.Site)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1