Skip to content

Commit

Permalink
Update StreamWorkerTaskRefresherTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dinujoh authored Nov 12, 2024
1 parent 8aa1d0e commit 346f1ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void test_initialize_then_process_stream() {
dbTableMetadataMockedStatic.when(() -> DbTableMetadata.fromMap(progressState)).thenReturn(dbTableMetadata);
streamWorkerMockedStatic.when(() -> StreamWorker.create(eq(sourceCoordinator), any(BinaryLogClient.class), eq(pluginMetrics)))
.thenReturn(streamWorker);
binlogEventListenerMockedStatic.when(() -> BinlogEventListener.create(eq(buffer), any(RdsSourceConfig.class),
binlogEventListenerMockedStatic.when(() -> BinlogEventListener.create(eq(streamPartition), eq(buffer), any(RdsSourceConfig.class),
any(String.class), eq(pluginMetrics), eq(binlogClient), eq(streamCheckpointer),
eq(acknowledgementSetManager), eq(dbTableMetadata), any(CascadingActionDetector.class)))
.thenReturn(binlogEventListener);
Expand Down Expand Up @@ -163,7 +163,7 @@ void test_update_when_credentials_changed_then_refresh_task() {
dbTableMetadataMockedStatic.when(() -> DbTableMetadata.fromMap(progressState)).thenReturn(dbTableMetadata);
streamWorkerMockedStatic.when(() -> StreamWorker.create(eq(sourceCoordinator), any(BinaryLogClient.class), eq(pluginMetrics)))
.thenReturn(streamWorker);
binlogEventListenerMockedStatic.when(() -> BinlogEventListener.create(eq(buffer), any(RdsSourceConfig.class),
binlogEventListenerMockedStatic.when(() -> BinlogEventListener.create(eq(streamPartition), eq(buffer), any(RdsSourceConfig.class),
any(String.class), eq(pluginMetrics), eq(binlogClient), eq(streamCheckpointer),
eq(acknowledgementSetManager), eq(dbTableMetadata), any(CascadingActionDetector.class)))
.thenReturn(binlogEventListener);
Expand Down

0 comments on commit 346f1ef

Please sign in to comment.