mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-23 23:48:51 -05:00
fix test case for new PassphraeCacheInterface
This commit is contained in:
parent
070017b12f
commit
bf9a708e84
@ -264,10 +264,19 @@ public class PgpEncryptDecryptTest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCachedPassphrase(long masterKeyId) throws NoSecretKeyException {
|
||||
public String getCachedPassphrase(long masterKeyId, long subKeyId) throws NoSecretKeyException {
|
||||
if (mExpectedId != null){
|
||||
Assert.assertEquals("requested passphrase must be for expected id",
|
||||
(long) mExpectedId, masterKeyId);
|
||||
(long) mExpectedId, subKeyId);
|
||||
}
|
||||
return mPassphrase;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCachedPassphrase(long subKeyId) throws NoSecretKeyException {
|
||||
if (mExpectedId != null){
|
||||
Assert.assertEquals("requested passphrase must be for expected id",
|
||||
(long) mExpectedId, subKeyId);
|
||||
}
|
||||
return mPassphrase;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user