@Test public void testGetReportData() { }
public ReportResponse getReportData(ReportRequest reportRequest,String moduleName,String reportName,String authToken) { ReportDefinitions rds = ReportApp.getReportDefs(); ReportDefinition reportDefinition = rds.getReportDefinition(moduleName+ " "+reportName); List<Map<String, Object>> maps = reportRepository.getData(reportRequest, reportDefinition,authToken); List<SourceColumn> columns = reportDefinition.getSourceColumns(); ReportResponse reportResponse = new ReportResponse(); populateData(columns, maps, reportResponse); populateReportHeader(reportDefinition, reportResponse); return reportResponse; }
ReportService { public ReportResponse getReportData(ReportRequest reportRequest,String moduleName,String reportName,String authToken) { ReportDefinitions rds = ReportApp.getReportDefs(); ReportDefinition reportDefinition = rds.getReportDefinition(moduleName+ " "+reportName); List<Map<String, Object>> maps = reportRepository.getData(reportRequest, reportDefinition,authToken); List<SourceColumn> columns = reportDefinition.getSourceColumns(); ReportResponse reportResponse = new ReportResponse(); populateData(columns, maps, reportResponse); populateReportHeader(reportDefinition, reportResponse); return reportResponse; } }
ReportService { public ReportResponse getReportData(ReportRequest reportRequest,String moduleName,String reportName,String authToken) { ReportDefinitions rds = ReportApp.getReportDefs(); ReportDefinition reportDefinition = rds.getReportDefinition(moduleName+ " "+reportName); List<Map<String, Object>> maps = reportRepository.getData(reportRequest, reportDefinition,authToken); List<SourceColumn> columns = reportDefinition.getSourceColumns(); ReportResponse reportResponse = new ReportResponse(); populateData(columns, maps, reportResponse); populateReportHeader(reportDefinition, reportResponse); return reportResponse; }  }
ReportService { public ReportResponse getReportData(ReportRequest reportRequest,String moduleName,String reportName,String authToken) { ReportDefinitions rds = ReportApp.getReportDefs(); ReportDefinition reportDefinition = rds.getReportDefinition(moduleName+ " "+reportName); List<Map<String, Object>> maps = reportRepository.getData(reportRequest, reportDefinition,authToken); List<SourceColumn> columns = reportDefinition.getSourceColumns(); ReportResponse reportResponse = new ReportResponse(); populateData(columns, maps, reportResponse); populateReportHeader(reportDefinition, reportResponse); return reportResponse; }  MetadataResponse getMetaData(MetaDataRequest metaDataRequest, String moduleName); ResponseEntity<?> getSuccessResponse(final MetadataResponse metadataResponse, final RequestInfo requestInfo,
			String tenantID); ResponseEntity<?> getReportDataSuccessResponse(final List<ReportResponse> reportResponse, final RequestInfo requestInfo
			,String tenantId); ResponseEntity<?> getFailureResponse( final RequestInfo requestInfo,
			String tenantID); ResponseEntity<?> getFailureResponse( final RequestInfo requestInfo,
			String tenantID, Exception e); ResponseEntity<?> reloadResponse( final RequestInfo requestInfo, Exception e); List<ReportResponse> getAllReportData(ReportRequest reportRequest,String moduleName,String authToken); ReportResponse getReportData(ReportRequest reportRequest,String moduleName,String reportName,String authToken); }
ReportService { public ReportResponse getReportData(ReportRequest reportRequest,String moduleName,String reportName,String authToken) { ReportDefinitions rds = ReportApp.getReportDefs(); ReportDefinition reportDefinition = rds.getReportDefinition(moduleName+ " "+reportName); List<Map<String, Object>> maps = reportRepository.getData(reportRequest, reportDefinition,authToken); List<SourceColumn> columns = reportDefinition.getSourceColumns(); ReportResponse reportResponse = new ReportResponse(); populateData(columns, maps, reportResponse); populateReportHeader(reportDefinition, reportResponse); return reportResponse; }  MetadataResponse getMetaData(MetaDataRequest metaDataRequest, String moduleName); ResponseEntity<?> getSuccessResponse(final MetadataResponse metadataResponse, final RequestInfo requestInfo,
			String tenantID); ResponseEntity<?> getReportDataSuccessResponse(final List<ReportResponse> reportResponse, final RequestInfo requestInfo
			,String tenantId); ResponseEntity<?> getFailureResponse( final RequestInfo requestInfo,
			String tenantID); ResponseEntity<?> getFailureResponse( final RequestInfo requestInfo,
			String tenantID, Exception e); ResponseEntity<?> reloadResponse( final RequestInfo requestInfo, Exception e); List<ReportResponse> getAllReportData(ReportRequest reportRequest,String moduleName,String authToken); ReportResponse getReportData(ReportRequest reportRequest,String moduleName,String reportName,String authToken); static final Logger LOGGER; }