Skip to content

Commit

Permalink
Test error propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Feb 27, 2025
1 parent 950643f commit ae2bc0c
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -958,15 +958,16 @@ void propagatesExceptionsFromCallbacks() {

results.containerEvents().assertThatEvents() //
.haveExactly(2, finishedWithFailure( //
message("2nd -> afterContainerTemplateInvocation: CallbackExceptionBehaviorTestCase"), //
suppressed(0, message("1st -> beforeContainerTemplateInvocation: CallbackExceptionBehaviorTestCase")), //
suppressed(1, message("1st -> afterContainerTemplateInvocation: CallbackExceptionBehaviorTestCase"))));
message("2nd -> afterContainerTemplateInvocation: CallbackExceptionBehaviorTestCase"), //
suppressed(0,
message("1st -> beforeContainerTemplateInvocation: CallbackExceptionBehaviorTestCase")), //
suppressed(1,
message("1st -> afterContainerTemplateInvocation: CallbackExceptionBehaviorTestCase"))));

assertThat(allReportEntryValues(results).distinct()) //
.containsExactly(
"1st -> beforeContainerTemplateInvocation: CallbackExceptionBehaviorTestCase", //
"2nd -> afterContainerTemplateInvocation: CallbackExceptionBehaviorTestCase", //
"1st -> afterContainerTemplateInvocation: CallbackExceptionBehaviorTestCase");
.containsExactly("1st -> beforeContainerTemplateInvocation: CallbackExceptionBehaviorTestCase", //
"2nd -> afterContainerTemplateInvocation: CallbackExceptionBehaviorTestCase", //
"1st -> afterContainerTemplateInvocation: CallbackExceptionBehaviorTestCase");
}

@Test
Expand Down

0 comments on commit ae2bc0c

Please sign in to comment.