diff options
-rw-r--r-- | appc-config/appc-encryption-tool/provider/src/test/java/org/onap/appc/encryptiontool/TestEncryptionTool.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/appc-config/appc-encryption-tool/provider/src/test/java/org/onap/appc/encryptiontool/TestEncryptionTool.java b/appc-config/appc-encryption-tool/provider/src/test/java/org/onap/appc/encryptiontool/TestEncryptionTool.java index f6ad5a59d..a02556803 100644 --- a/appc-config/appc-encryption-tool/provider/src/test/java/org/onap/appc/encryptiontool/TestEncryptionTool.java +++ b/appc-config/appc-encryption-tool/provider/src/test/java/org/onap/appc/encryptiontool/TestEncryptionTool.java @@ -6,6 +6,8 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= + * Modification Copyright (C) 2018 IBM. + * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -34,6 +36,7 @@ import org.onap.appc.encryptiontool.wrapper.EncryptionTool; import org.onap.appc.encryptiontool.wrapper.EncryptionToolDGWrapper; import org.onap.appc.encryptiontool.wrapper.WrapperEncryptionTool; import org.onap.ccsdk.sli.core.sli.SvcLogicContext; +import static org.junit.Assert.assertEquals; public class TestEncryptionTool { @@ -98,4 +101,11 @@ public class TestEncryptionTool { inParams.put("prefix", "user"); et.getProperty(inParams, ctx); } + + @Test + public void testEncrypt() throws Exception { + EncryptionTool et = EncryptionTool.getInstance(); + String s1=et.encrypt("sampleText"); + assertEquals("enc:MD4XHE0udVFHOw==", s1); + } } |