Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[main] Bump Quarkus version to 2.7.0.Final #1217

Merged
merged 2 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@
<!-- Used by task assigning integration tests -->
<module>persistence-commons</module>
<module>apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-common</module>
<module>data-index/data-index-service/data-index-service-common</module>
<module>data-index/data-index-service/data-index-service-infinispan</module>
<module>data-index/data-index-storage/data-index-storage-protobuf</module>
<module>data-index/data-index-storage/data-index-storage-api</module>
<module>data-index/data-index-storage/data-index-storage-infinispan</module>
<module>data-index</module>
<!-- Used by task assigning integration tests -->
</modules>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ class ReactiveMessagingEventConsumerTest {
void setUp() {
taskAssigningServiceEventConsumer = mock(TaskAssigningServiceEventConsumer.class);
consumer = new ReactiveMessagingEventConsumer(taskAssigningServiceEventConsumer, failFastRequestEvent);
}

@Test
void onUserTaskEvent() {
UserTaskEvent event = new UserTaskEvent();
event.setTaskId(TASK_ID);
event.setLastUpdate(LAST_MODIFICATION_DATE);
doReturn(event).when(message).getPayload();
}

@Test
void onUserTaskEvent() {
consumer.onUserTaskEvent(message);
verify(taskAssigningServiceEventConsumer).accept(taskDataEventCaptor.capture());
assertThat(taskDataEventCaptor.getValue().getTaskId()).isEqualTo(TASK_ID);
Expand All @@ -99,6 +100,10 @@ void failFast() {

@Test
void onUserTaskEventFailure() {
UserTaskEvent event = new UserTaskEvent();
event.setTaskId(TASK_ID);
event.setLastUpdate(LAST_MODIFICATION_DATE);
doReturn(event).when(message).getPayload();
String error = "Generic invented error";
String expectedErrorMessage = "An error was produced during a UserTaskEvent event processing: " + error;
doThrow(new RuntimeException(error)).when(taskAssigningServiceEventConsumer).accept(any());
Expand Down