Add support for using file descriptors as input and output

Fixes #12
This commit is contained in:
Paul Schaub 2022-11-11 15:56:33 +01:00
parent 3ee42ea2ed
commit 4bc45a0692
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
4 changed files with 40 additions and 7 deletions

View file

@ -145,8 +145,8 @@ public class AbstractSopCmdTest {
}
@Test
public void getOutput_fdUnsupportedSpecialPrefix() {
assertThrows(SOPGPException.UnsupportedSpecialPrefix.class, () -> abstractCmd.getOutput("@FD:IS_ILLEGAL"));
public void getOutput_malformedFileDescriptor() {
assertThrows(IllegalArgumentException.class, () -> abstractCmd.getOutput("@FD:IS_ILLEGAL"));
}
@Test