1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-22 19:08:00 +01:00

Rename test and reference exit codes directly

This commit is contained in:
Paul Schaub 2022-06-11 11:22:56 +02:00
parent 53df487e59
commit a3b2070e76
2 changed files with 4 additions and 3 deletions

View file

@ -7,17 +7,18 @@ package org.pgpainless.cli;
import com.ginsberg.junit.exit.ExpectSystemExitWithStatus;
import com.ginsberg.junit.exit.FailOnSystemExit;
import org.junit.jupiter.api.Test;
import sop.exception.SOPGPException;
public class ExitCodeTest {
@Test
@ExpectSystemExitWithStatus(69)
@ExpectSystemExitWithStatus(SOPGPException.UnsupportedSubcommand.EXIT_CODE)
public void testUnknownCommand_69() {
PGPainlessCLI.main(new String[] {"generate-kex"});
}
@Test
@ExpectSystemExitWithStatus(37)
@ExpectSystemExitWithStatus(SOPGPException.UnsupportedOption.EXIT_CODE)
public void testCommandWithUnknownOption_37() {
PGPainlessCLI.main(new String[] {"generate-key", "-k", "\"k is unknown\""});
}

View file

@ -28,7 +28,7 @@ import org.pgpainless.cli.PGPainlessCLI;
import org.pgpainless.cli.TestUtils;
import sop.exception.SOPGPException;
public class DetachInbandSignatureAndMessageTest {
public class InlineDetachTest {
private PrintStream originalSout;
private static File tempDir;