Skip to content

Commit

Permalink
Update src/test/java/de/tum/cit/ase/ares/api/architecture/JavaArchUni…
Browse files Browse the repository at this point in the history
…tTestCaseSupportedTest.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
MarkusPaulsen and coderabbitai[bot] authored Dec 5, 2024
1 parent 11cc0e9 commit 0086010
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,15 @@ void testEnumValueOf() {
assertEquals(JavaArchitecturalTestCaseSupported.COMMAND_EXECUTION, JavaArchitecturalTestCaseSupported.valueOf("COMMAND_EXECUTION"));
assertEquals(JavaArchitecturalTestCaseSupported.THREAD_CREATION, JavaArchitecturalTestCaseSupported.valueOf("THREAD_CREATION"));
assertEquals(JavaArchitecturalTestCaseSupported.PACKAGE_IMPORT, JavaArchitecturalTestCaseSupported.valueOf("PACKAGE_IMPORT"));
assertEquals(JavaArchitecturalTestCaseSupported.TERMINATE_JVM, JavaArchitecturalTestCaseSupported.valueOf("TERMINATE_JVM"));
assertEquals(JavaArchitecturalTestCaseSupported.REFLECTION, JavaArchitecturalTestCaseSupported.valueOf("REFLECTION"));
assertEquals(JavaArchitecturalTestCaseSupported.SERIALIZATION, JavaArchitecturalTestCaseSupported.valueOf("SERIALIZATION"));
assertEquals(JavaArchitecturalTestCaseSupported.CLASS_LOADING, JavaArchitecturalTestCaseSupported.valueOf("CLASS_LOADING"));
}

@Test
void testEnumValueOfInvalid() {
assertThrows(IllegalArgumentException.class,
() -> JavaArchitecturalTestCaseSupported.valueOf("INVALID_VALUE"));
}
}

0 comments on commit 0086010

Please sign in to comment.