use of com.forgerock.openbanking.common.model.openbanking.persistence.event.FREventNotification in project openbanking-aspsp by OpenBankingToolkit.
the class SignedJwtEventBuilderTest method buildClaimsForInternationalScheduledPayment_validJwtClaimsBuilt.
@Test
public void buildClaimsForInternationalScheduledPayment_validJwtClaimsBuilt() {
// Given
EventSubject subject = getEventSubject("PISC_123", "v3.1", "international-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/international-scheduled-payments", "international-scheduled-payment", "v3.1");
}
Aggregations