Skip to content

Commit c6b2918

Browse files
committed
Add test for parsing packed workflow natively
1 parent 1384ce2 commit c6b2918

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ public ResultSet answer(InvocationOnMock invocation) throws Throwable {
8787
@Rule
8888
public ExpectedException thrown = ExpectedException.none();
8989

90+
@Test
91+
public void parsePackedWorkflowNative() throws Exception {
92+
CWLService cwlService = new CWLService(rdfService, Mockito.mock(CWLTool.class), 5242880);
93+
Workflow dna = cwlService.parseWorkflowNative(
94+
new File("src/test/resources/cwl/make_to_cwl/dna.cwl"), "main");
95+
assertNotNull(dna);
96+
assertEquals("dna.cwl", dna.getLabel());
97+
assertEquals(1, dna.getInputs().size());
98+
assertEquals(1, dna.getOutputs().size());
99+
assertEquals(3, dna.getSteps().size());
100+
101+
}
102+
90103
/**
91104
* Test native loading parsing of a the LobSTR workflow CWL version draft-3
92105
*/

0 commit comments

Comments
 (0)