Skip to content

Commit d52d6d1

Browse files
committed
Fix test to mock less
1 parent 9f51ae0 commit d52d6d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/org/commonwl/view/workflow/WorkflowServiceTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ public void getWorkflowsFromDirectory() throws Exception {
107107
@Test
108108
public void getWorkflowCacheHasExpired() throws Exception {
109109

110-
GitDetails githubInfo = new GitDetails("https://github.com/owner/repoName.git", "sha", "path");
110+
GitDetails githubInfo = new GitDetails("https://github.com/common-workflow-language/workflows.git",
111+
"master", "dna.cwl");
111112

112113
Workflow oldWorkflow = new Workflow("old", "This is the expired workflow",
113114
new HashMap<>(), new HashMap<>(), new HashMap<>(), null);
@@ -128,7 +129,7 @@ public void getWorkflowCacheHasExpired() throws Exception {
128129
when(mockCWLService.parseWorkflowNative(anyObject())).thenReturn(updatedWorkflow);
129130

130131
Repository mockRepo = Mockito.mock(Repository.class);
131-
when(mockRepo.getWorkTree()).thenReturn(new File("src/test/resources/cwl/make_to_cwl/dna.cwl"));
132+
when(mockRepo.getWorkTree()).thenReturn(new File("src/test/resources/cwl/make_to_cwl"));
132133

133134
Git mockGitRepo = Mockito.mock(Git.class);
134135
when(mockGitRepo.getRepository()).thenReturn(mockRepo);

0 commit comments

Comments
 (0)