Search in sources :

Example 11 with FREventPolling

use of com.forgerock.openbanking.common.model.openbanking.domain.event.FREventPolling in project openbanking-aspsp by OpenBankingToolkit.

the class EventPollingServiceTest method acknowledgeEvents_emptyList.

@Test
public void acknowledgeEvents_emptyList() {
    // Given
    FREventPolling pollingRequest = FREventPolling.builder().ack(Collections.emptyList()).build();
    // When
    eventPollingService.acknowledgeEvents(pollingRequest, TPP_ID);
    // Then
    verifyZeroInteractions(mockRepo);
}
Also used : FREventPolling(com.forgerock.openbanking.common.model.openbanking.domain.event.FREventPolling) Test(org.junit.Test)

Example 12 with FREventPolling

use of com.forgerock.openbanking.common.model.openbanking.domain.event.FREventPolling in project openbanking-aspsp by OpenBankingToolkit.

the class EventPollingServiceTest method recordTppEventErrors_noErrors_doNothing.

@Test
public void recordTppEventErrors_noErrors_doNothing() {
    // Given
    FREventPolling pollingRequest = FREventPolling.builder().setErrs(null).build();
    // When
    eventPollingService.recordTppEventErrors(pollingRequest, TPP_ID);
    // Then
    verifyZeroInteractions(mockRepo);
}
Also used : FREventPolling(com.forgerock.openbanking.common.model.openbanking.domain.event.FREventPolling) Test(org.junit.Test)

Aggregations

FREventPolling (com.forgerock.openbanking.common.model.openbanking.domain.event.FREventPolling)12 Test (org.junit.Test)10 FREventNotification (com.forgerock.openbanking.common.model.openbanking.persistence.event.FREventNotification)3 FREventPollingConverter.toFREventPolling (com.forgerock.openbanking.common.services.openbanking.converter.event.FREventPollingConverter.toFREventPolling)2 OBErrorResponseException (com.forgerock.openbanking.exceptions.OBErrorResponseException)2 Tpp (com.forgerock.openbanking.model.Tpp)2 OBEventPollingResponse1 (uk.org.openbanking.datamodel.event.OBEventPollingResponse1)2