File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed
Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ jobs:
9494 unit-test :
9595 runs-on : ubuntu-latest
9696 steps :
97- - name : Set up JDK 11
97+ - name : Set up JDK 17
9898 uses : actions/setup-java@v3
9999 with :
100100 distribution : ' zulu'
101- java-version : ' 11 '
101+ java-version : ' 17 '
102102
103103 - uses : actions/setup-dotnet@v3
104104 with :
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public static class ArtifactTypes
2222 {
2323 { ArtifactType . Unset , "Unset" } ,
2424 { ArtifactType . Folder , "Folders" } ,
25+ { ArtifactType . HL7 , "HL7 message" } ,
2526 { ArtifactType . AR , "Autorefract" } ,
2627 { ArtifactType . ASMT , "Content Assessment Results" } ,
2728 { ArtifactType . AU , "Audio" } ,
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17+ using System ;
1718using Monai . Deploy . Messaging . Common ;
1819using Xunit ;
1920
@@ -32,5 +33,27 @@ public void ArtifactTypeInvalid_ShouldReturnFalse()
3233 {
3334 Assert . False ( ArtifactTypes . Validate ( "false" ) ) ;
3435 }
36+
37+ [ Fact ]
38+ public void ArtifactTypeNull_ShouldReturnFalse ( )
39+ {
40+ Assert . False ( ArtifactTypes . Validate ( null ) ) ;
41+ }
42+
43+ [ Fact ]
44+ public void ArtifactTypes_Should_Contain_All ( )
45+ {
46+ foreach ( var artifactType in Enum . GetValues ( typeof ( ArtifactType ) ) )
47+ {
48+ Assert . True ( ArtifactTypes . ListOfModularity . ContainsKey ( ( ArtifactType ) artifactType ) ) ;
49+ }
50+ }
51+
52+ [ Fact ]
53+ public void ArtifactTypes_Should_Contain_Same_Count ( )
54+ {
55+ Assert . Equal ( ArtifactTypes . ListOfModularity . Count , Enum . GetValues ( typeof ( ArtifactType ) ) . Length ) ;
56+ }
57+
3558 }
3659}
You can’t perform that action at this time.
0 commit comments