use of com.forgerock.openbanking.common.model.openbanking.persistence.vrp.FRDomesticVRPRequestData in project openbanking-aspsp by OpenBankingToolkit.
the class FRDomesticVRPConvertersTest method success_toFRDomesticVRPRequest.
@Test
public void success_toFRDomesticVRPRequest() {
// Given
OBDomesticVRPRequest obDomesticVRPPaymentRequest = getOBDomesticVRPRequest();
// When
FRDomesticVRPRequest frDomesticVRPRequest = FRDomesticVRPConverters.toFRDomesticVRPRequest(obDomesticVRPPaymentRequest);
// Then
assertThat(frDomesticVRPRequest).isNotNull();
assertThat(frDomesticVRPRequest.getData()).isNotNull();
FRDomesticVRPRequestData frRequestData = frDomesticVRPRequest.getData();
OBDomesticVRPRequestData obRequestData = obDomesticVRPPaymentRequest.getData();
assertThat(frRequestData.getConsentId()).isNotNull();
assertThat(frRequestData.getConsentId()).isEqualTo(obRequestData.getConsentId());
assertThat(frRequestData.getPsuAuthenticationMethod()).isNotNull();
assertThat(frRequestData.getPsuAuthenticationMethod()).isEqualTo(obRequestData.getPsUAuthenticationMethod());
assertThat(frRequestData.getInitiation()).isNotNull();
assertThat(frRequestData.getInstruction()).isNotNull();
}
Aggregations