Skip to content

Commit

Permalink
fixing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sondermanish committed Feb 20, 2025
1 parent 9b9b336 commit 4477846
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.appsmith.server.git.resourcemap;

import com.appsmith.external.git.GitExecutor;
import com.appsmith.external.git.handler.FSGitHandler;
import com.appsmith.external.git.models.GitResourceIdentity;
import com.appsmith.external.git.models.GitResourceMap;
import com.appsmith.server.constants.ArtifactType;
Expand Down Expand Up @@ -52,7 +52,7 @@ public class ExchangeJsonConversionTests {
CommonGitFileUtils commonGitFileUtils;

@SpyBean
GitExecutor gitExecutor;
FSGitHandler fsGitHandler;

@TestTemplate
public void testConvertArtifactJsonToGitResourceMap_whenArtifactIsFullyPopulated_returnsCorrespondingResourceMap(
Expand Down Expand Up @@ -127,7 +127,7 @@ public void testSerializeArtifactExchangeJson_whenArtifactIsFullyPopulated_retur
ExchangeJsonContext context) throws IOException, GitAPIException {
ArtifactExchangeJson originalArtifactJson = createArtifactJson(context).block();

Mockito.doReturn(Mono.just(true)).when(gitExecutor).resetToLastCommit(Mockito.any(), Mockito.anyString());
Mockito.doReturn(Mono.just(true)).when(fsGitHandler).resetToLastCommit(Mockito.any(), Mockito.anyString());

Files.createDirectories(Path.of("./container-volumes/git-storage/test123"));

Expand Down

0 comments on commit 4477846

Please sign in to comment.