Add test for listing encrypt profiles, use new shortcut methods

This commit is contained in:
Paul Schaub 2023-04-18 18:05:10 +02:00
parent 78ecf2f554
commit 4a7c2b74da
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 14 additions and 2 deletions

View File

@ -27,8 +27,20 @@ public class ListProfilesTest extends AbstractSOPTest {
@ParameterizedTest
@MethodSource("provideInstances")
public void listGenerateKeyProfiles(SOP sop) throws IOException {
List<Profile> profiles = sop.listProfiles()
.subcommand("generate-key");
List<Profile> profiles = sop
.listProfiles()
.generateKey();
assertFalse(profiles.isEmpty());
}
@ParameterizedTest
@MethodSource("provideInstances")
public void listEncryptProfiles(SOP sop) throws IOException {
List<Profile> profiles = sop
.listProfiles()
.encrypt();
assertFalse(profiles.isEmpty());
}