mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 12:57:57 +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