@Test public void testConfigure() { final String datasourceKey = "datasourceKey"; when(reportProps.getDatasourceKey()).thenReturn(datasourceKey); final Map<String, Object> configure = sut.configure(reportProps, reportFormat, datasource); assertEquals(1, configure.size()); assertEquals(datasource, configure.get(datasourceKey)); }
@Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = newMap(); parameters.put(reportProps.getDatasourceKey(), datasource); return parameters; }
SetDatasourceKeyTask implements ReportParameterConfigurerTask { @Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = newMap(); parameters.put(reportProps.getDatasourceKey(), datasource); return parameters; } }
SetDatasourceKeyTask implements ReportParameterConfigurerTask { @Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = newMap(); parameters.put(reportProps.getDatasourceKey(), datasource); return parameters; }  }
SetDatasourceKeyTask implements ReportParameterConfigurerTask { @Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = newMap(); parameters.put(reportProps.getDatasourceKey(), datasource); return parameters; }  @Override Map<String, Object> configure(ReportProps reportProps,
			ReportFormat reportFormat, JRDataSource datasource); }
SetDatasourceKeyTask implements ReportParameterConfigurerTask { @Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = newMap(); parameters.put(reportProps.getDatasourceKey(), datasource); return parameters; }  @Override Map<String, Object> configure(ReportProps reportProps,
			ReportFormat reportFormat, JRDataSource datasource);  }