File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
main/java/org/commonwl/view/cwl
test/java/org/commonwl/view/cwl Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,15 @@ public enum CWLProcess {
29
29
30
30
@ Override
31
31
public String toString () {
32
- String defaultString = super .toString ();
33
- return defaultString .substring (0 , 1 ) + defaultString .substring (1 ).toLowerCase ();
32
+ switch (this ) {
33
+ case WORKFLOW :
34
+ return "Workflow" ;
35
+ case COMMANDLINETOOL :
36
+ return "CommandLineTool" ;
37
+ case EXPRESSIONTOOL :
38
+ return "ExpressionTool" ;
39
+ default :
40
+ return super .toString ();
41
+ }
34
42
}
35
43
}
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ public class CWLProcessTest {
31
31
@ Test
32
32
public void testToString () throws Exception {
33
33
assertEquals ("Workflow" , CWLProcess .WORKFLOW .toString ());
34
- assertEquals ("Commandlinetool " , CWLProcess .COMMANDLINETOOL .toString ());
35
- assertEquals ("Expressiontool " , CWLProcess .EXPRESSIONTOOL .toString ());
34
+ assertEquals ("CommandLineTool " , CWLProcess .COMMANDLINETOOL .toString ());
35
+ assertEquals ("ExpressionTool " , CWLProcess .EXPRESSIONTOOL .toString ());
36
36
}
37
37
38
- }
38
+ }
You can’t perform that action at this time.
0 commit comments