1
1
package org .w3id .cwl .cwl1_2 .utils ;
2
2
3
- import org .w3id .cwl .cwl1_2 .utils .RootLoader ;
4
- import org .w3id .cwl .cwl1_2 .utils .Uris ;
5
- import org .w3id .cwl .cwl1_2 .utils .YamlUtils ;
6
-
7
3
public class ExamplesTest {
8
4
9
5
@ org .junit .Test
@@ -890,7 +886,7 @@ public void testvalid_iwdr_entryByMap() throws Exception {
890
886
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
891
887
RootLoader .loadDocument (doc , url .toString ());
892
888
}
893
- @ org .junit .Test ()
889
+ @ org .junit .Test
894
890
public void testvalid_count_lines17_wfByString () throws Exception {
895
891
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
896
892
String baseUri = Uris .fileUri (path ) + "/" ;
@@ -900,14 +896,14 @@ public void testvalid_count_lines17_wfByString() throws Exception {
900
896
RootLoader .loadDocument (yaml , baseUri );
901
897
}
902
898
903
- @ org .junit .Test ()
899
+ @ org .junit .Test
904
900
public void testvalid_count_lines17_wfByPath () throws Exception {
905
901
java .net .URL url = getClass ().getResource ("valid_count-lines17-wf.cwl" );
906
902
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
907
903
RootLoader .loadDocument (resPath );
908
904
}
909
905
910
- @ org .junit .Test ()
906
+ @ org .junit .Test
911
907
public void testvalid_count_lines17_wfByMap () throws Exception {
912
908
java .net .URL url = getClass ().getResource ("valid_count-lines17-wf.cwl" );
913
909
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
@@ -1020,7 +1016,7 @@ public void testvalid_count_lines2_wfByMap() throws Exception {
1020
1016
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
1021
1017
RootLoader .loadDocument (doc , url .toString ());
1022
1018
}
1023
- @ org .junit .Test ()
1019
+ @ org .junit .Test
1024
1020
public void testvalid_count_lines14_wfByString () throws Exception {
1025
1021
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
1026
1022
String baseUri = Uris .fileUri (path ) + "/" ;
@@ -1030,14 +1026,14 @@ public void testvalid_count_lines14_wfByString() throws Exception {
1030
1026
RootLoader .loadDocument (yaml , baseUri );
1031
1027
}
1032
1028
1033
- @ org .junit .Test ()
1029
+ @ org .junit .Test
1034
1030
public void testvalid_count_lines14_wfByPath () throws Exception {
1035
1031
java .net .URL url = getClass ().getResource ("valid_count-lines14-wf.cwl" );
1036
1032
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
1037
1033
RootLoader .loadDocument (resPath );
1038
1034
}
1039
1035
1040
- @ org .junit .Test ()
1036
+ @ org .junit .Test
1041
1037
public void testvalid_count_lines14_wfByMap () throws Exception {
1042
1038
java .net .URL url = getClass ().getResource ("valid_count-lines14-wf.cwl" );
1043
1039
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
@@ -1800,7 +1796,7 @@ public void testvalid_inline_jsByMap() throws Exception {
1800
1796
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
1801
1797
RootLoader .loadDocument (doc , url .toString ());
1802
1798
}
1803
- @ org .junit .Test ()
1799
+ @ org .junit .Test
1804
1800
public void testvalid_count_lines16_wfByString () throws Exception {
1805
1801
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
1806
1802
String baseUri = Uris .fileUri (path ) + "/" ;
@@ -1810,14 +1806,14 @@ public void testvalid_count_lines16_wfByString() throws Exception {
1810
1806
RootLoader .loadDocument (yaml , baseUri );
1811
1807
}
1812
1808
1813
- @ org .junit .Test ()
1809
+ @ org .junit .Test
1814
1810
public void testvalid_count_lines16_wfByPath () throws Exception {
1815
1811
java .net .URL url = getClass ().getResource ("valid_count-lines16-wf.cwl" );
1816
1812
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
1817
1813
RootLoader .loadDocument (resPath );
1818
1814
}
1819
1815
1820
- @ org .junit .Test ()
1816
+ @ org .junit .Test
1821
1817
public void testvalid_count_lines16_wfByMap () throws Exception {
1822
1818
java .net .URL url = getClass ().getResource ("valid_count-lines16-wf.cwl" );
1823
1819
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
@@ -3594,7 +3590,7 @@ public void testvalid_scatter_valuefrom_inputs_wf1ByMap() throws Exception {
3594
3590
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
3595
3591
RootLoader .loadDocument (doc , url .toString ());
3596
3592
}
3597
- @ org .junit .Test ()
3593
+ @ org .junit .Test
3598
3594
public void testvalid_count_lines10_wfByString () throws Exception {
3599
3595
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
3600
3596
String baseUri = Uris .fileUri (path ) + "/" ;
@@ -3604,14 +3600,14 @@ public void testvalid_count_lines10_wfByString() throws Exception {
3604
3600
RootLoader .loadDocument (yaml , baseUri );
3605
3601
}
3606
3602
3607
- @ org .junit .Test ()
3603
+ @ org .junit .Test
3608
3604
public void testvalid_count_lines10_wfByPath () throws Exception {
3609
3605
java .net .URL url = getClass ().getResource ("valid_count-lines10-wf.cwl" );
3610
3606
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
3611
3607
RootLoader .loadDocument (resPath );
3612
3608
}
3613
3609
3614
- @ org .junit .Test ()
3610
+ @ org .junit .Test
3615
3611
public void testvalid_count_lines10_wfByMap () throws Exception {
3616
3612
java .net .URL url = getClass ().getResource ("valid_count-lines10-wf.cwl" );
3617
3613
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
@@ -3828,6 +3824,7 @@ public void testvalid_wf_loadContentsByMap() throws Exception {
3828
3824
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
3829
3825
RootLoader .loadDocument (doc , url .toString ());
3830
3826
}
3827
+
3831
3828
@ org .junit .Test
3832
3829
public void testvalid_record_in_secondaryFilesByString () throws Exception {
3833
3830
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
@@ -3854,6 +3851,34 @@ public void testvalid_record_in_secondaryFilesByMap() throws Exception {
3854
3851
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
3855
3852
RootLoader .loadDocument (doc , url .toString ());
3856
3853
}
3854
+
3855
+ @ org .junit .Test
3856
+ public void testvalid_packed_record_in_secondaryFilesByString () throws Exception {
3857
+ String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
3858
+ String baseUri = Uris .fileUri (path ) + "/" ;
3859
+ java .net .URL url = getClass ().getResource ("valid_packed_record-in-secondaryFiles.cwl" );
3860
+ java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
3861
+ String yaml = new String (java .nio .file .Files .readAllBytes (resPath ), "UTF8" );
3862
+ RootLoader .loadDocument (yaml , baseUri );
3863
+ }
3864
+
3865
+ @ org .junit .Test
3866
+ public void testvalid_packed_record_in_secondaryFilesByPath () throws Exception {
3867
+ java .net .URL url = getClass ().getResource ("valid_packed_record-in-secondaryFiles.cwl" );
3868
+ java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
3869
+ RootLoader .loadDocument (resPath );
3870
+ }
3871
+
3872
+ @ org .junit .Test
3873
+ public void testvalid_packed_record_in_secondaryFilesByMap () throws Exception {
3874
+ java .net .URL url = getClass ().getResource ("valid_packed_record-in-secondaryFiles.cwl" );
3875
+ java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
3876
+ String yaml = new String (java .nio .file .Files .readAllBytes (resPath ), "UTF8" );
3877
+ java .util .Map <String , Object > doc ;
3878
+ doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
3879
+ RootLoader .loadDocument (doc , url .toString ());
3880
+ }
3881
+
3857
3882
@ org .junit .Test
3858
3883
public void testvalid_writable_dir_dockerByString () throws Exception {
3859
3884
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
@@ -5128,7 +5153,7 @@ public void testvalid_revsortByMap() throws Exception {
5128
5153
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
5129
5154
RootLoader .loadDocument (doc , url .toString ());
5130
5155
}
5131
- @ org .junit .Test ()
5156
+ @ org .junit .Test
5132
5157
public void testvalid_tmap_toolByString () throws Exception {
5133
5158
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
5134
5159
String baseUri = Uris .fileUri (path ) + "/" ;
@@ -5138,14 +5163,14 @@ public void testvalid_tmap_toolByString() throws Exception {
5138
5163
RootLoader .loadDocument (yaml , baseUri );
5139
5164
}
5140
5165
5141
- @ org .junit .Test ()
5166
+ @ org .junit .Test
5142
5167
public void testvalid_tmap_toolByPath () throws Exception {
5143
5168
java .net .URL url = getClass ().getResource ("valid_tmap-tool.cwl" );
5144
5169
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
5145
5170
RootLoader .loadDocument (resPath );
5146
5171
}
5147
5172
5148
- @ org .junit .Test ()
5173
+ @ org .junit .Test
5149
5174
public void testvalid_tmap_toolByMap () throws Exception {
5150
5175
java .net .URL url = getClass ().getResource ("valid_tmap-tool.cwl" );
5151
5176
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
@@ -6532,7 +6557,7 @@ public void testvalid_io_int_default_wfByMap() throws Exception {
6532
6557
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
6533
6558
RootLoader .loadDocument (doc , url .toString ());
6534
6559
}
6535
- @ org .junit .Test ()
6560
+ @ org .junit .Test
6536
6561
public void testvalid_count_lines18_wfByString () throws Exception {
6537
6562
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
6538
6563
String baseUri = Uris .fileUri (path ) + "/" ;
@@ -6542,14 +6567,14 @@ public void testvalid_count_lines18_wfByString() throws Exception {
6542
6567
RootLoader .loadDocument (yaml , baseUri );
6543
6568
}
6544
6569
6545
- @ org .junit .Test ()
6570
+ @ org .junit .Test
6546
6571
public void testvalid_count_lines18_wfByPath () throws Exception {
6547
6572
java .net .URL url = getClass ().getResource ("valid_count-lines18-wf.cwl" );
6548
6573
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
6549
6574
RootLoader .loadDocument (resPath );
6550
6575
}
6551
6576
6552
- @ org .junit .Test ()
6577
+ @ org .junit .Test
6553
6578
public void testvalid_count_lines18_wfByMap () throws Exception {
6554
6579
java .net .URL url = getClass ().getResource ("valid_count-lines18-wf.cwl" );
6555
6580
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
@@ -6714,7 +6739,7 @@ public void testvalid_rename_outputsByMap() throws Exception {
6714
6739
doc = (java .util .Map <String , Object >) YamlUtils .mapFromString (yaml );
6715
6740
RootLoader .loadDocument (doc , url .toString ());
6716
6741
}
6717
- @ org .junit .Test ()
6742
+ @ org .junit .Test
6718
6743
public void testvalid_count_lines15_wfByString () throws Exception {
6719
6744
String path = java .nio .file .Paths .get ("." ).toAbsolutePath ().normalize ().toString ();
6720
6745
String baseUri = Uris .fileUri (path ) + "/" ;
@@ -6724,14 +6749,14 @@ public void testvalid_count_lines15_wfByString() throws Exception {
6724
6749
RootLoader .loadDocument (yaml , baseUri );
6725
6750
}
6726
6751
6727
- @ org .junit .Test ()
6752
+ @ org .junit .Test
6728
6753
public void testvalid_count_lines15_wfByPath () throws Exception {
6729
6754
java .net .URL url = getClass ().getResource ("valid_count-lines15-wf.cwl" );
6730
6755
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
6731
6756
RootLoader .loadDocument (resPath );
6732
6757
}
6733
6758
6734
- @ org .junit .Test ()
6759
+ @ org .junit .Test
6735
6760
public void testvalid_count_lines15_wfByMap () throws Exception {
6736
6761
java .net .URL url = getClass ().getResource ("valid_count-lines15-wf.cwl" );
6737
6762
java .nio .file .Path resPath = java .nio .file .Paths .get (url .toURI ());
0 commit comments