Kotlin conversion: SopCLI

This commit is contained in:
Paul Schaub 2023-11-15 12:35:23 +01:00
parent 0c2cf5cb19
commit baa44a6b1a
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
4 changed files with 114 additions and 138 deletions

View file

@ -45,7 +45,7 @@ public class SOPTest {
@Test
@ExpectSystemExitWithStatus(1)
public void assertThrowsIfNoSOPBackendSet() {
SopCLI.SOP_INSTANCE = null;
SopCLI.setSopInstance(null);
// At this point, no SOP backend is set, so an InvalidStateException triggers exit(1)
SopCLI.main(new String[] {"armor"});
}