mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-26 09:02: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
|
@ParameterizedTest
|
||||||
@MethodSource("provideInstances")
|
@MethodSource("provideInstances")
|
||||||
public void listGenerateKeyProfiles(SOP sop) throws IOException {
|
public void listGenerateKeyProfiles(SOP sop) throws IOException {
|
||||||
List<Profile> profiles = sop.listProfiles()
|
List<Profile> profiles = sop
|
||||||
.subcommand("generate-key");
|
.listProfiles()
|
||||||
|
.generateKey();
|
||||||
|
|
||||||
|
assertFalse(profiles.isEmpty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@ParameterizedTest
|
||||||
|
@MethodSource("provideInstances")
|
||||||
|
public void listEncryptProfiles(SOP sop) throws IOException {
|
||||||
|
List<Profile> profiles = sop
|
||||||
|
.listProfiles()
|
||||||
|
.encrypt();
|
||||||
|
|
||||||
assertFalse(profiles.isEmpty());
|
assertFalse(profiles.isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue