blob: a4a092e2332ce158f3a5dbf4405f1ca8eabb69de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package org.onap.appc.ccadaptor;
import org.junit.Assert;
import org.junit.Test;
public class TestEncryptionTool {
@Test
public void testEncrypt() {
EncryptionTool tool = EncryptionTool.getInstance();
String value = tool.encrypt("encrypt");
Assert.assertEquals("enc:JjEZHlg7VQ==", value);
System.out.println(value);
}
@Test
public void testDecrypt() {
EncryptionTool tool = EncryptionTool.getInstance();
String value = tool.decrypt("enc:JjEZHlg7VQ==");
Assert.assertEquals("encrypt", value);
System.out.println(value);
}
}
|