use of com.forgerock.openbanking.common.model.openbanking.persistence.event.FREventNotification in project openbanking-aspsp by OpenBankingToolkit.
the class SignedJwtEventBuilderTest method buildClaimsForInternationalPayment_validJwtClaimsBuilt.
@Test
public void buildClaimsForInternationalPayment_validJwtClaimsBuilt() {
// Given
EventSubject subject = getEventSubject("PIC_123", "v3.1", "international-payment");
// When
FREventNotification eventNotification = signedJwtEventBuilder.build(TPP, subject, EventType.RESOURCE_UPDATE_EVENT);
// Then
assertThat(eventNotification.getSignedJwt()).isEqualTo(FAKE_SIGNED_JWT);
areClaimsValidForConsentId(subject.getId(), "/v3.1/international-payments", "international-payment", "v3.1");
}
use of com.forgerock.openbanking.common.model.openbanking.persistence.event.FREventNotification in project openbanking-aspsp by OpenBankingToolkit.
the class SignedJwtEventBuilderTest method buildClaimsForSinglePayment_validJwtClaimsBuilt.
@Test
public void buildClaimsForSinglePayment_validJwtClaimsBuilt() {
// Given
EventSubject subject = EventSubject.builder().id("PR_123").url(BASE_URL + "/v2.0/single-payments/PR_123").type("single-payment").version("v2.0").build();
// When
FREventNotification eventNotification = signedJwtEventBuilder.build(TPP, subject, EventType.RESOURCE_UPDATE_EVENT);
// Then
assertThat(eventNotification.getSignedJwt()).isEqualTo(FAKE_SIGNED_JWT);
areClaimsValidForConsentId(subject.getId(), "/v2.0/single-payments", "single-payment", "v2.0");
}
use of com.forgerock.openbanking.common.model.openbanking.persistence.event.FREventNotification in project openbanking-aspsp by OpenBankingToolkit.
the class SignedJwtEventBuilderTest method buildClaimsForDomesticScheduledPayment_validJwtClaimsBuilt.
@Test
public void buildClaimsForDomesticScheduledPayment_validJwtClaimsBuilt() {
// Given
EventSubject subject = getEventSubject("PISC_123", "v3.1", "domestic-scheduled-payment");
// When
FREventNotification eventNotification = signedJwtEventBuilder.build(TPP, subject, EventType.RESOURCE_UPDATE_EVENT);
// Then
assertThat(eventNotification.getSignedJwt()).isEqualTo(FAKE_SIGNED_JWT);
areClaimsValidForConsentId(subject.getId(), "/v3.1/domestic-scheduled-payments", "domestic-scheduled-payment", "v3.1");
}
use of com.forgerock.openbanking.common.model.openbanking.persistence.event.FREventNotification in project openbanking-aspsp by OpenBankingToolkit.
the class SignedJwtEventBuilderTest method buildClaimsForDomesticStandingOrder_validJwtClaimsBuilt.
@Test
public void buildClaimsForDomesticStandingOrder_validJwtClaimsBuilt() {
// Given
EventSubject subject = getEventSubject("PISC_123", "v3.1", "domestic-standing-order");
// When
FREventNotification eventNotification = signedJwtEventBuilder.build(TPP, subject, EventType.RESOURCE_UPDATE_EVENT);
// Then
assertThat(eventNotification.getSignedJwt()).isEqualTo(FAKE_SIGNED_JWT);
areClaimsValidForConsentId(subject.getId(), "/v3.1/domestic-standing-orders", "domestic-standing-order", "v3.1");
}
use of com.forgerock.openbanking.common.model.openbanking.persistence.event.FREventNotification in project openbanking-aspsp by OpenBankingToolkit.
the class SignedJwtEventBuilderTest method buildClaimsForDomesticPayment_validJwtClaimsBuilt.
@Test
public void buildClaimsForDomesticPayment_validJwtClaimsBuilt() {
// Given
EventSubject subject = getEventSubject("PISC_123", "v3.1", "domestic-payment");
// When
FREventNotification eventNotification = signedJwtEventBuilder.build(TPP, subject, EventType.RESOURCE_UPDATE_EVENT);
// Then
assertThat(eventNotification.getSignedJwt()).isEqualTo(FAKE_SIGNED_JWT);
areClaimsValidForConsentId(subject.getId(), "/v3.1/domestic-payments", "domestic-payment", "v3.1");
}
Aggregations