mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Use java.util.Arrays, trying to move away from BouncyCastle
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@40499 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,12 +21,12 @@ package org.alfresco.encryption;
|
||||
import java.io.Serializable;
|
||||
import java.security.AlgorithmParameters;
|
||||
import java.security.KeyException;
|
||||
import java.util.Arrays;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.util.Pair;
|
||||
import org.bouncycastle.util.Arrays;
|
||||
|
||||
/**
|
||||
* @since 4.0
|
||||
@@ -53,7 +53,7 @@ public class EncryptorTest extends TestCase
|
||||
"fluff",
|
||||
encryptedPair.getSecond(),
|
||||
encryptedPair.getFirst());
|
||||
assertTrue("Encryption round trip failed. ", Arrays.areEqual(bytes, decrypted));
|
||||
assertTrue("Encryption round trip failed. ", Arrays.equals(bytes, decrypted));
|
||||
}
|
||||
|
||||
public void testBasicBytes_WithKey()
|
||||
@@ -65,7 +65,7 @@ public class EncryptorTest extends TestCase
|
||||
"mykey1",
|
||||
encryptedPair.getSecond(),
|
||||
encryptedPair.getFirst());
|
||||
assertTrue("Encryption round trip failed. ", Arrays.areEqual(bytes, decrypted));
|
||||
assertTrue("Encryption round trip failed. ", Arrays.equals(bytes, decrypted));
|
||||
}
|
||||
|
||||
public void testBasicObject()
|
||||
|
Reference in New Issue
Block a user