Skip to content

Commit fae403a

Browse files
authored
Extend Argon2EncodingUtilsTests.decodeWhenNonexistingAlgorithmThenThrowException
Signed-off-by: Roman Trapickin <[email protected]>
1 parent 05809b4 commit fae403a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crypto/src/test/java/org/springframework/security/crypto/argon2/Argon2EncodingUtilsTests.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public void decodeWhenNotAnArgon2HashThenThrowException() {
9595
@Test
9696
public void decodeWhenNonexistingAlgorithmThenThrowException() {
9797
assertThatIllegalArgumentException().isThrownBy(() -> Argon2EncodingUtils
98-
.decode("$argon2x$v=19$m=1024,t=3,p=2$Y1JkRmJDdzIzZ3oyTWx4aw$cGE5Cbd/cx7micVhXVBdH5qTr66JI1iUyuNNVAnErXs"));
98+
.decode("$argon2x$v=19$m=1024,t=3,p=2$Y1JkRmJDdzIzZ3oyTWx4aw$cGE5Cbd/cx7micVhXVBdH5qTr66JI1iUyuNNVAnErXs"))
99+
.withMessageContaining("argon2x");
99100
}
100101

101102
@Test

0 commit comments

Comments
 (0)