1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-17 00:54:50 +02:00
pgpainless/pgpainless-core/src/test/java/org/pgpainless/key/protection/UnprotectedKeysProtectorTest.java

25 lines
625 B
Java
Raw Normal View History

2021-10-07 15:48:52 +02:00
// SPDX-FileCopyrightText: 2020 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
2020-01-12 20:33:31 +01:00
package org.pgpainless.key.protection;
2020-11-13 16:31:59 +01:00
import static org.junit.jupiter.api.Assertions.assertNull;
2020-01-12 20:33:31 +01:00
2020-11-13 16:31:59 +01:00
import org.junit.jupiter.api.Test;
2020-01-12 20:33:31 +01:00
public class UnprotectedKeysProtectorTest {
2021-12-28 13:32:50 +01:00
private final UnprotectedKeysProtector protector = new UnprotectedKeysProtector();
2020-01-12 20:33:31 +01:00
@Test
public void testKeyProtectorReturnsNullDecryptor() {
assertNull(protector.getDecryptor(0L));
}
@Test
public void testKeyProtectorReturnsNullEncryptor() {
assertNull(protector.getEncryptor(0L));
}
}