mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-22 15:12:06 +01:00
Add test for listing encrypt profiles, use new shortcut methods
This commit is contained in:
parent
78ecf2f554
commit
4a7c2b74da
1 changed files with 14 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue