diff --git a/src/test/java/fr/xephi/authme/security/crypts/BcryptTest.java b/src/test/java/fr/xephi/authme/security/crypts/BcryptTest.java index 65ea3b68c..106689ae7 100644 --- a/src/test/java/fr/xephi/authme/security/crypts/BcryptTest.java +++ b/src/test/java/fr/xephi/authme/security/crypts/BcryptTest.java @@ -2,15 +2,15 @@ package fr.xephi.authme.security.crypts; import fr.xephi.authme.settings.Settings; import fr.xephi.authme.util.WrapperMock; -import org.junit.Before; +import org.junit.BeforeClass; /** * Test for {@link BCRYPT}. */ public class BcryptTest extends AbstractEncryptionMethodTest { - @Before - public void setUpSettings() { + @BeforeClass + public static void setUpSettings() { WrapperMock.createInstance(); Settings.bCryptLog2Rounds = 8; } diff --git a/src/test/java/fr/xephi/authme/security/crypts/XFBCRYPTTest.java b/src/test/java/fr/xephi/authme/security/crypts/XFBCRYPTTest.java index 4edafbdd0..3b7294a04 100644 --- a/src/test/java/fr/xephi/authme/security/crypts/XFBCRYPTTest.java +++ b/src/test/java/fr/xephi/authme/security/crypts/XFBCRYPTTest.java @@ -1,10 +1,18 @@ package fr.xephi.authme.security.crypts; +import fr.xephi.authme.util.WrapperMock; +import org.junit.BeforeClass; + /** * Test for {@link XFBCRYPT}. */ public class XFBCRYPTTest extends AbstractEncryptionMethodTest { + @BeforeClass + public static void setUpWrapper() { + WrapperMock.createInstance(); + } + public XFBCRYPTTest() { super(new XFBCRYPT(), "$2a$10$UtuON/ZG.x8EWG/zQbryB.BHfQVrfxk3H7qykzP.UJQ8YiLjZyfqq", // password