Skip to content

Commit

Permalink
Merge pull request #10586 from camunda/backport-10468-to-release-8.1.0
Browse files Browse the repository at this point in the history
[Backport release-8.1.0] Migrate StreamProcessor test
  • Loading branch information
Zelldon committed Sep 30, 2022
2 parents dea0635 + 352e767 commit c7ff8cd
Show file tree
Hide file tree
Showing 5 changed files with 742 additions and 737 deletions.
Expand Up @@ -48,7 +48,7 @@ void shouldMarkUnhealthyWhenLoopInErrorHandling() {
// given
streamProcessor = streamPlatform.startStreamProcessor();

final var mockProcessor = streamPlatform.getDefaultRecordProcessor();
final var mockProcessor = streamPlatform.getDefaultMockedRecordProcessor();
when(mockProcessor.process(any(), any())).thenThrow(new RuntimeException("expected"));
when(mockProcessor.onProcessingError(any(), any(), any()))
.thenThrow(new RuntimeException("expected"));
Expand All @@ -70,7 +70,7 @@ void shouldBecomeHealthyWhenErrorIsResolved() {
streamProcessor = streamPlatform.startStreamProcessor();
final var shouldFail = new AtomicBoolean(true);

final var mockProcessor = streamPlatform.getDefaultRecordProcessor();
final var mockProcessor = streamPlatform.getDefaultMockedRecordProcessor();
when(mockProcessor.process(any(), any())).thenThrow(new RuntimeException("expected"));
when(mockProcessor.onProcessingError(any(), any(), any()))
.thenAnswer(
Expand Down

0 comments on commit c7ff8cd

Please sign in to comment.