use of org.hisp.dhis.program.ProgramIndicatorService in project dhis2-core by dhis2.
the class EventsAnalyticsManagerTest method setUp.
@BeforeEach
public void setUp() {
StatementBuilder statementBuilder = new PostgreSQLStatementBuilder();
EventTimeFieldSqlRenderer timeCoordinateSelector = new EventTimeFieldSqlRenderer(statementBuilder);
ProgramIndicatorService programIndicatorService = mock(ProgramIndicatorService.class);
DefaultProgramIndicatorSubqueryBuilder programIndicatorSubqueryBuilder = new DefaultProgramIndicatorSubqueryBuilder(programIndicatorService);
subject = new JdbcEventAnalyticsManager(jdbcTemplate, statementBuilder, programIndicatorService, programIndicatorSubqueryBuilder, timeCoordinateSelector, executionPlanStore);
when(jdbcTemplate.queryForRowSet(anyString())).thenReturn(this.rowSet);
}
Aggregations