Remove skip test for Xenforo hash.
This commit is contained in:
parent
2c13783c6c
commit
fab13c586f
@ -47,12 +47,6 @@ public class HashAlgorithmIntegrationTest {
|
|||||||
public void shouldBeAbleToInstantiateEncryptionAlgorithms() throws InstantiationException, IllegalAccessException {
|
public void shouldBeAbleToInstantiateEncryptionAlgorithms() throws InstantiationException, IllegalAccessException {
|
||||||
// given / when / then
|
// given / when / then
|
||||||
for (HashAlgorithm algorithm : HashAlgorithm.values()) {
|
for (HashAlgorithm algorithm : HashAlgorithm.values()) {
|
||||||
// TODO #137: Remove this check
|
|
||||||
if (HashAlgorithm.XFBCRYPT.equals(algorithm)) {
|
|
||||||
System.out.println("Note: Currently skipping XFBCRYPT hash (TODO #137: Fix it)");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!HashAlgorithm.CUSTOM.equals(algorithm)) {
|
if (!HashAlgorithm.CUSTOM.equals(algorithm)) {
|
||||||
EncryptionMethod method = algorithm.getClazz().newInstance();
|
EncryptionMethod method = algorithm.getClazz().newInstance();
|
||||||
HashedPassword hashedPassword = method.computeHash("pwd", "name");
|
HashedPassword hashedPassword = method.computeHash("pwd", "name");
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
package fr.xephi.authme.security.crypts;
|
package fr.xephi.authme.security.crypts;
|
||||||
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test for {@link XFBCRYPT}.
|
* Test for {@link XFBCRYPT}.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user