Skip to content

Commit a3a84dc

Browse files
committed
Mocking changes for tests
1 parent 9f9c5c8 commit a3a84dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/test/java/org/commonwl/view/cwl/CWLServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public void getHelloWorkflowOverview() throws Exception {
179179
// No docs for this workflow
180180
assertEquals("Hello World", hello.getLabel());
181181
assertEquals("Puts a message into a file using echo", hello.getDoc());
182-
assertEquals("hello.cwl", hello.getFileName());
182+
assertEquals("/hello.cwl", hello.getFileName());
183183

184184
}
185185

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public void directWorkflowURL() throws Exception {
160160

161161
Workflow mockWorkflow = Mockito.mock(Workflow.class);
162162
QueuedWorkflow mockQueuedWorkflow = Mockito.mock(QueuedWorkflow.class);
163+
when(mockQueuedWorkflow.getWorkflowList()).thenReturn(null);
163164

164165
// Mock service
165166
WorkflowService mockWorkflowService = Mockito.mock(WorkflowService.class);

0 commit comments

Comments
 (0)