Repository: syncope Updated Branches: refs/heads/1_2_X 42b1b5f8d -> d4edbaa81
Filter security.properties for the spring tests as well Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/ea687551 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/ea687551 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/ea687551 Branch: refs/heads/1_2_X Commit: ea68755183514cacbb48b966c14baec71c5dbfef Parents: 42b1b5f Author: Colm O hEigeartaigh <cohei...@apache.org> Authored: Mon Jul 17 19:15:53 2017 +0100 Committer: Colm O hEigeartaigh <cohei...@apache.org> Committed: Tue Jul 18 13:03:21 2017 +0100 ---------------------------------------------------------------------- .../java/org/apache/syncope/core/security/EncryptorTest.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/ea687551/core/src/test/java/org/apache/syncope/core/security/EncryptorTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/org/apache/syncope/core/security/EncryptorTest.java b/core/src/test/java/org/apache/syncope/core/security/EncryptorTest.java index 7d8fdb6..626416f 100644 --- a/core/src/test/java/org/apache/syncope/core/security/EncryptorTest.java +++ b/core/src/test/java/org/apache/syncope/core/security/EncryptorTest.java @@ -18,6 +18,7 @@ */ package org.apache.syncope.core.security; +import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; @@ -56,4 +57,10 @@ public class EncryptorTest { } } } + + @Test + public void testDecodeDefaultAESKey() throws Exception { + String password = encryptor.decode("9Pav+xl+UyHt02H9ZBytiA==", CipherAlgorithm.AES); + assertEquals("password", password); + } }