Skip to content

Commit

Permalink
more mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
sondermanish committed Jan 3, 2025
1 parent 70ad2a1 commit 8877a5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public void connectArtifactToGit_whenUsingGlobalProfile_completesSuccessfully()
Mockito.anyString());
Mockito.doReturn(Mono.just(Paths.get("")))
.when(commonGitFileUtils)
.saveArtifactToLocalRepoWithAnalytics(any(Path.class), any(), Mockito.anyString());
.saveArtifactToLocalRepoNew(any(Path.class), any(), Mockito.anyString());
Mockito.doReturn(Mono.just(true)).when(commonGitFileUtils).checkIfDirectoryIsEmpty(any(Path.class));
Mockito.doReturn(Mono.just(Paths.get("textPath")))
.when(commonGitFileUtils)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public void discardChanges_whenUpstreamChangesAvailable_discardsSuccessfully() t

Mockito.doReturn(Mono.just(Paths.get("path")))
.when(commonGitFileUtils)
.saveArtifactToLocalRepoWithAnalytics(any(Path.class), any(), Mockito.anyString());
.saveArtifactToLocalRepoNew(any(Path.class), any(), Mockito.anyString());
Mockito.doReturn(Mono.just(artifactExchangeJson))
.when(gitHandlingService)
.recreateArtifactJsonFromLastCommit(Mockito.any());
Expand Down Expand Up @@ -243,7 +243,7 @@ public void discardChanges_whenCancelledMidway_discardsSuccessfully() throws IOE

Mockito.doReturn(Mono.just(Paths.get("path")))
.when(commonGitFileUtils)
.saveArtifactToLocalRepoWithAnalytics(any(Path.class), any(), Mockito.anyString());
.saveArtifactToLocalRepoNew(any(Path.class), any(), Mockito.anyString());
Mockito.doReturn(Mono.just(artifactExchangeJson))
.when(gitHandlingService)
.recreateArtifactJsonFromLastCommit(Mockito.any());
Expand Down

0 comments on commit 8877a5b

Please sign in to comment.