@Test public void oadrRegisterReportTest() throws Oadr20bApplicationLayerException, Oadr20bMarshalException, Oadr20bUnmarshalException, Oadr20bXMLSignatureValidationException, Oadr20bXMLSignatureException, OadrSecurityException { String reportId = ""; String reportRequestId = ""; String reportSpecifierId = ""; ReportNameEnumeratedType reportName = ReportNameEnumeratedType.METADATA_HISTORY_GREENBUTTON; long createdTimestamp = 0L; Long startTimestamp = 0L; String duration = "PT1S"; OadrReportType report = Oadr20bEiReportBuilders.newOadr20bUpdateReportOadrReportBuilder(reportId, reportRequestId, reportSpecifierId, reportName, createdTimestamp, startTimestamp, duration).build(); OadrRegisterReportType oadrRegisterReport = Oadr20bEiReportBuilders .newOadr20bRegisterReportBuilder("", venConfig.getVenId(), reportRequestId).addOadrReport(report) .build(); String request = oadr20bVENEiReportService.request(vtnHttpId, oadr20bJAXBContext.marshalRoot(oadrRegisterReport)); OadrRegisteredReportType resp = oadr20bJAXBContext.unmarshal(request, OadrRegisteredReportType.class); assertNotNull(resp); assertEquals(resp.getEiResponse().getResponseCode(), "200"); }
public OadrRegisteredReportType oadrRegisterReport(VtnSessionConfiguration vtnConfig, OadrRegisterReportType oadrRegisterReportType) { String requestID = oadrRegisterReportType.getRequestID(); return Oadr20bEiReportBuilders.newOadr20bRegisteredReportBuilder(requestID, HttpStatus.OK_200, vtnConfig.getVenSessionConfig().getVenId()).build(); }
Oadr20bVENEiReportService { public OadrRegisteredReportType oadrRegisterReport(VtnSessionConfiguration vtnConfig, OadrRegisterReportType oadrRegisterReportType) { String requestID = oadrRegisterReportType.getRequestID(); return Oadr20bEiReportBuilders.newOadr20bRegisteredReportBuilder(requestID, HttpStatus.OK_200, vtnConfig.getVenSessionConfig().getVenId()).build(); } }
Oadr20bVENEiReportService { public OadrRegisteredReportType oadrRegisterReport(VtnSessionConfiguration vtnConfig, OadrRegisterReportType oadrRegisterReportType) { String requestID = oadrRegisterReportType.getRequestID(); return Oadr20bEiReportBuilders.newOadr20bRegisteredReportBuilder(requestID, HttpStatus.OK_200, vtnConfig.getVenSessionConfig().getVenId()).build(); }  }
Oadr20bVENEiReportService { public OadrRegisteredReportType oadrRegisterReport(VtnSessionConfiguration vtnConfig, OadrRegisterReportType oadrRegisterReportType) { String requestID = oadrRegisterReportType.getRequestID(); return Oadr20bEiReportBuilders.newOadr20bRegisteredReportBuilder(requestID, HttpStatus.OK_200, vtnConfig.getVenSessionConfig().getVenId()).build(); }  OadrRegisterReportType selfOadrRegisterReport(String requestId, String venId, String reportRequestId); OadrUpdatedReportType oadrUpdateReport(VtnSessionConfiguration vtnConfig,
			OadrUpdateReportType oadrUpdateReportType); OadrRegisteredReportType oadrRegisterReport(VtnSessionConfiguration vtnConfig,
			OadrRegisterReportType oadrRegisterReportType); OadrCreatedReportType oadrCreateReport(VtnSessionConfiguration vtnConfig,
			OadrCreateReportType oadrCreateReportType); void oadrCreatedReport(VtnSessionConfiguration vtnConfig, OadrCreatedReportType oadrCreatedReportType); OadrCanceledReportType oadrCancelReport(VtnSessionConfiguration vtnConfig,
			OadrCancelReportType oadrCancelReportType); Object handle(VtnSessionConfiguration multiConfig, OadrPayload oadrPayload); String request(String username, String payload); }
Oadr20bVENEiReportService { public OadrRegisteredReportType oadrRegisterReport(VtnSessionConfiguration vtnConfig, OadrRegisterReportType oadrRegisterReportType) { String requestID = oadrRegisterReportType.getRequestID(); return Oadr20bEiReportBuilders.newOadr20bRegisteredReportBuilder(requestID, HttpStatus.OK_200, vtnConfig.getVenSessionConfig().getVenId()).build(); }  OadrRegisterReportType selfOadrRegisterReport(String requestId, String venId, String reportRequestId); OadrUpdatedReportType oadrUpdateReport(VtnSessionConfiguration vtnConfig,
			OadrUpdateReportType oadrUpdateReportType); OadrRegisteredReportType oadrRegisterReport(VtnSessionConfiguration vtnConfig,
			OadrRegisterReportType oadrRegisterReportType); OadrCreatedReportType oadrCreateReport(VtnSessionConfiguration vtnConfig,
			OadrCreateReportType oadrCreateReportType); void oadrCreatedReport(VtnSessionConfiguration vtnConfig, OadrCreatedReportType oadrCreatedReportType); OadrCanceledReportType oadrCancelReport(VtnSessionConfiguration vtnConfig,
			OadrCancelReportType oadrCancelReportType); Object handle(VtnSessionConfiguration multiConfig, OadrPayload oadrPayload); String request(String username, String payload);  }