Suppress deprecation warnings in spring-security-crypto

This commit is contained in:
Johnny Lim
2018-05-05 10:04:56 +09:00
committed by Rob Winch
parent 2a0f529ee4
commit 9b42831c70
8 changed files with 26 additions and 24 deletions

View File

@@ -22,6 +22,7 @@ import org.junit.*;
/**
* @author Luke Taylor
*/
@SuppressWarnings("deprecation")
public class Base64Tests {
@Test
@@ -33,7 +34,7 @@ public class Base64Tests {
}
@Test
public void isBase64ReturnsFalseForInvalidBase64() throws Exception {
public void isBase64ReturnsFalseForInvalidBase64() {
// Include invalid '`' character
assertThat(Base64.isBase64(new byte[] { (byte) 'A', (byte) 'B', (byte) 'C',
(byte) '`' })).isFalse();

View File

@@ -26,6 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*
* @author Luke Taylor
*/
@SuppressWarnings("deprecation")
public class LdapShaPasswordEncoderTests {
// ~ Instance fields
// ================================================================================================

View File

@@ -21,7 +21,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
@SuppressWarnings("deprecation")
public class Md4PasswordEncoderTests {
@Test

View File

@@ -30,6 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Ray Krueger
* @author Luke Taylor
*/
@SuppressWarnings("deprecation")
public class MessageDigestPasswordEncoderTests {
// ~ Methods
// ========================================================================================================

View File

@@ -19,6 +19,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
@SuppressWarnings("deprecation")
public class StandardPasswordEncoderTests {
private StandardPasswordEncoder encoder = new StandardPasswordEncoder("secret");