Commit
This commit is contained in:
parent
ef7e769461
commit
5a3e48d070
1 changed files with 14 additions and 0 deletions
|
|
@ -79,4 +79,18 @@ class PgpSignatureVerificationTest {
|
|||
checker.verify("simple message", invalidFingerprint, detachedSignature)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `verify should fail for empty input data`() {
|
||||
shouldThrow<Exception> {
|
||||
checker.verify("simple message", invalidFingerprint, "")
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `verify should fail for empty fingerprint data`() {
|
||||
shouldThrow<Exception> {
|
||||
checker.verify("simple message", "", detachedSignature)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue