Skip to content

Commit

Permalink
Minor comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tekul committed Jan 16, 2012
1 parent 2d556c7 commit f97463c
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -20,8 +20,9 @@
import org.junit.Test;



/**
* <p>TestCase for PlaintextPasswordEncoder.</p>
* <p>TestCase for Md5PasswordEncoder.</p>
*
* @author colin sampaleanu
* @author Ben Alex
Expand All @@ -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);
}
Expand Down

0 comments on commit f97463c

Please sign in to comment.