1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-16 08:34:53 +02:00

SOP: List profiles of null command throws

This commit is contained in:
Paul Schaub 2023-06-12 14:25:04 +02:00
parent b9c2e8dfe9
commit 2367674151
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -31,4 +31,10 @@ public class ListProfilesTest {
assertThrows(SOPGPException.UnsupportedProfile.class, () -> assertThrows(SOPGPException.UnsupportedProfile.class, () ->
sop.listProfiles().subcommand("help")); sop.listProfiles().subcommand("help"));
} }
@Test
public void listProfilesOfNullThrows() {
assertThrows(SOPGPException.UnsupportedProfile.class, () ->
sop.listProfiles().subcommand(null));
}
} }