Skip to content

Commit

Permalink
Merge pull request #12 from FINTLabs/FFS-285
Browse files Browse the repository at this point in the history
FFS-285
  • Loading branch information
Battlestad authored Sep 21, 2023
2 parents 59ba3d6 + 498830e commit 4b74c0b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/no/fintlabs/EventTopicNames.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ private EventTopicNames() {
public static String INSTANCE_REGISTERED = "instance-registered";
public static String INSTANCE_REQUESTED_FOR_RETRY = "instance-requested-for-retry";
public static String INSTANCE_MAPPED = "instance-mapped";
public static String INSTANCE_READY_FOR_DISPATCH = "instance-ready-for-dispatch";
public static String INSTANCE_DISPATCHED = "instance-dispatched";

public static String INSTANCE_RECEIVAL_ERROR = "instance-receival-error";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public ConcurrentMessageListenerContainer<String, Object> instanceMappedEventCon
return createInfoEventListener(INSTANCE_MAPPED);
}

@Bean
public ConcurrentMessageListenerContainer<String, Object> instanceReadyForDispatchEventConsumer() {
return createInfoEventListener(INSTANCE_READY_FOR_DISPATCH);
}

@Bean
public ConcurrentMessageListenerContainer<String, Object> instanceDispatchedEventConsumer() {
return createInfoEventListener(INSTANCE_DISPATCHED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public void shouldReturnNumberOfDispatchedInstances() {
createNamedEvent("1", "1", EventType.INFO, INSTANCE_RECEIVED),
createNamedEvent("1", "1", EventType.INFO, INSTANCE_REGISTERED),
createNamedEvent("1", "1", EventType.INFO, INSTANCE_MAPPED),
createNamedEvent("1", "1", EventType.INFO, INSTANCE_READY_FOR_DISPATCH),
createNamedEvent("1", "1", EventType.INFO, INSTANCE_DISPATCHED),

createNamedEvent("1", "2", EventType.INFO, INSTANCE_RECEIVED),
Expand All @@ -171,12 +172,14 @@ public void shouldReturnNumberOfDispatchedInstances() {
createNamedEvent("2", "3", EventType.INFO, INSTANCE_RECEIVED),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_REGISTERED),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_MAPPED),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_READY_FOR_DISPATCH),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_DISPATCHED),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_DISPATCHED),

createNamedEvent("2", "4", EventType.INFO, INSTANCE_RECEIVED),
createNamedEvent("2", "4", EventType.INFO, INSTANCE_REGISTERED),
createNamedEvent("2", "4", EventType.INFO, INSTANCE_MAPPED),
createNamedEvent("2", "4", EventType.INFO, INSTANCE_READY_FOR_DISPATCH),
createNamedEvent("2", "4", EventType.INFO, INSTANCE_DISPATCHED)
));

Expand All @@ -191,6 +194,7 @@ public void shouldReturnNumberOfDispatchedInstancesPerIntegrationId() {
createNamedEvent("1", "1", EventType.INFO, INSTANCE_RECEIVED),
createNamedEvent("1", "1", EventType.INFO, INSTANCE_REGISTERED),
createNamedEvent("1", "1", EventType.INFO, INSTANCE_MAPPED),
createNamedEvent("1", "1", EventType.INFO, INSTANCE_READY_FOR_DISPATCH),
createNamedEvent("1", "1", EventType.INFO, INSTANCE_DISPATCHED),

createNamedEvent("1", "2", EventType.INFO, INSTANCE_RECEIVED),
Expand All @@ -200,12 +204,14 @@ public void shouldReturnNumberOfDispatchedInstancesPerIntegrationId() {
createNamedEvent("2", "3", EventType.INFO, INSTANCE_RECEIVED),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_REGISTERED),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_MAPPED),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_READY_FOR_DISPATCH),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_DISPATCHED),
createNamedEvent("2", "3", EventType.INFO, INSTANCE_DISPATCHED),

createNamedEvent("2", "4", EventType.INFO, INSTANCE_RECEIVED),
createNamedEvent("2", "4", EventType.INFO, INSTANCE_REGISTERED),
createNamedEvent("2", "4", EventType.INFO, INSTANCE_MAPPED),
createNamedEvent("2", "4", EventType.INFO, INSTANCE_READY_FOR_DISPATCH),
createNamedEvent("2", "4", EventType.INFO, INSTANCE_DISPATCHED)
));

Expand Down

0 comments on commit 4b74c0b

Please sign in to comment.