Skip to content

Commit

Permalink
Unit test fix
Browse files Browse the repository at this point in the history
Signed-off-by: Dinu John <86094133+dinujoh@users.noreply.github.com>
  • Loading branch information
dinujoh committed Apr 1, 2024
1 parent f77c08a commit bd4c251
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ void test_processStream_checkPointIntervalSuccess() {
when(streamDoc2.getResumeToken()).thenReturn(bsonDoc2);
when(streamDoc3.getResumeToken()).thenReturn(bsonDoc3);
when(cursor.next())
.thenReturn(streamDoc1)
.thenReturn(streamDoc2)
.thenReturn(streamDoc3);
.thenReturn(streamDoc1, streamDoc2, streamDoc3);
when(doc1.toJson(any(JsonWriterSettings.class))).thenReturn(UUID.randomUUID().toString());
when(doc2.toJson(any(JsonWriterSettings.class))).thenReturn(UUID.randomUUID().toString());
when(doc3.toJson(any(JsonWriterSettings.class))).thenReturn(UUID.randomUUID().toString());
Expand Down

0 comments on commit bd4c251

Please sign in to comment.