@Test public void testConfigure_HTML() { final ReportFormat reportFormat = ReportFormat.HTML; RequestScopedParameters requestScopedParameters = mock(RequestScopedParameters.class); when(requestScopedParametersProvider.getRequestScopedParameters()).thenReturn(requestScopedParameters); Map<String, Object> parameters = new HashMap<>(); String key = "key"; String value = "value"; parameters.put(key, value); when(requestScopedParameters.getParameters()).thenReturn(parameters); final Map<String, Object> configure = sut.configure(reportProps, reportFormat, datasource); assertEquals(parameters,configure); }
@Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = this.requestScopedParametersProvider .getRequestScopedParameters().getParameters(); Assert.notEmpty(parameters, "RequestScopedParameters.parameters must have at least '1' element"); return parameters; }
SetRequestScopedParametersTask implements
		ReportParameterConfigurerTask { @Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = this.requestScopedParametersProvider .getRequestScopedParameters().getParameters(); Assert.notEmpty(parameters, "RequestScopedParameters.parameters must have at least '1' element"); return parameters; } }
SetRequestScopedParametersTask implements
		ReportParameterConfigurerTask { @Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = this.requestScopedParametersProvider .getRequestScopedParameters().getParameters(); Assert.notEmpty(parameters, "RequestScopedParameters.parameters must have at least '1' element"); return parameters; } SetRequestScopedParametersTask(
			RequestScopedParametersProvider requestScopedParametersProvider); }
SetRequestScopedParametersTask implements
		ReportParameterConfigurerTask { @Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = this.requestScopedParametersProvider .getRequestScopedParameters().getParameters(); Assert.notEmpty(parameters, "RequestScopedParameters.parameters must have at least '1' element"); return parameters; } SetRequestScopedParametersTask(
			RequestScopedParametersProvider requestScopedParametersProvider); @Override Map<String, Object> configure(ReportProps reportProps,
			ReportFormat reportFormat, JRDataSource datasource); }
SetRequestScopedParametersTask implements
		ReportParameterConfigurerTask { @Override public Map<String, Object> configure(ReportProps reportProps, ReportFormat reportFormat, JRDataSource datasource) { final Map<String, Object> parameters = this.requestScopedParametersProvider .getRequestScopedParameters().getParameters(); Assert.notEmpty(parameters, "RequestScopedParameters.parameters must have at least '1' element"); return parameters; } SetRequestScopedParametersTask(
			RequestScopedParametersProvider requestScopedParametersProvider); @Override Map<String, Object> configure(ReportProps reportProps,
			ReportFormat reportFormat, JRDataSource datasource);  }