use of org.entando.entando.aps.system.services.widgettype.model.WidgetDtoBuilder in project entando-core by entando.
the class WidgetServiceTest method setUp.
@Before
public void setUp() throws Exception {
when(pageManager.getOnlineWidgetUtilizers(WIDGET_1_CODE)).thenReturn(ImmutableList.of(new Page()));
when(pageManager.getDraftWidgetUtilizers(WIDGET_1_CODE)).thenReturn(ImmutableList.of(new Page()));
WidgetDtoBuilder dtoBuilder = new WidgetDtoBuilder();
dtoBuilder.setPageManager(pageManager);
dtoBuilder.setComponentManager(componentManager);
dtoBuilder.setStockWidgetCodes("");
widgetService.setDtoBuilder(dtoBuilder);
when(widgetManager.getWidgetTypes()).thenReturn(ImmutableList.of(getWidget1(), getWidget2()));
}
Aggregations