1
2
3
4
5
6
7 package org.mule.module.pgp;
8
9 import org.bouncycastle.openpgp.PGPPublicKey;
10 import org.bouncycastle.openpgp.PGPSecretKey;
11 import org.junit.Test;
12
13 import static org.junit.Assert.assertNotNull;
14
15 public class PGPKeyRingTestCase extends AbstractEncryptionStrategyTestCase
16 {
17 @Test
18 public void testClientKey()
19 {
20 PGPPublicKey clientKey = keyManager.getPublicKey("Mule client <mule_client@mule.com>");
21 assertNotNull(clientKey);
22 }
23
24 @Test
25 public void testServerKey()
26 {
27 PGPSecretKey serverKey = keyManager.getSecretKey();
28 assertNotNull(serverKey);
29 }
30 }