Search in sources :

Example 1 with DefaultRenderService

use of org.hisp.dhis.render.DefaultRenderService in project dhis2-core by dhis2.

the class TrackerImportControllerTest method setUp.

@BeforeEach
public void setUp() {
    renderService = new DefaultRenderService(JacksonObjectMapperConfig.jsonMapper, JacksonObjectMapperConfig.xmlMapper, mock(SchemaService.class));
    // Controller under test
    final TrackerImportController controller = new TrackerImportController(importStrategy, trackerImportService, csvEventService, new DefaultContextService(), notifier);
    mockMvc = MockMvcBuilders.standaloneSetup(controller).build();
}
Also used : DefaultContextService(org.hisp.dhis.webapi.service.DefaultContextService) DefaultRenderService(org.hisp.dhis.render.DefaultRenderService) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

DefaultRenderService (org.hisp.dhis.render.DefaultRenderService)1 DefaultContextService (org.hisp.dhis.webapi.service.DefaultContextService)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1