Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor comment fixes

  • Loading branch information...
commit f97463cdb57c79b5ef08a5799e5a556c059efecf 1 parent 2d556c7
@tekul authored
View
7 core/src/test/java/org/springframework/security/authentication/encoding/Md5PasswordEncoderTests.java
@@ -20,8 +20,9 @@
import org.junit.Test;
+
/**
- * <p>TestCase for PlaintextPasswordEncoder.</p>
+ * <p>TestCase for Md5PasswordEncoder.</p>
*
* @author colin sampaleanu
* @author Ben Alex
@@ -45,8 +46,10 @@ public void testBasicFunctionality() {
}
@Test
- public void nonAsciiPasswordHasCorrectHash() {
+ public void nonAsciiPasswordHasCorrectHash() throws Exception{
Md5PasswordEncoder md5 = new Md5PasswordEncoder();
+ // $ echo -n "你好" | md5
+ // 7eca689f0d3389d9dea66ae112e5cfd7
String encodedPassword = md5.encodePassword("\u4F60\u597d", null);
assertEquals("7eca689f0d3389d9dea66ae112e5cfd7", encodedPassword);
}
Please sign in to comment.
Something went wrong with that request. Please try again.