21 lines
368 B
Java
21 lines
368 B
Java
package com.monkeyk.sos.infrastructure;
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
import static org.junit.Assert.assertNotNull;
|
|
|
|
/*
|
|
* @author Shengzhao Li
|
|
*/
|
|
public class PasswordHandlerTest {
|
|
|
|
|
|
@Test
|
|
public void testMd5() throws Exception {
|
|
|
|
final String md5 = PasswordHandler.encode("123456");
|
|
assertNotNull(md5);
|
|
System.out.println(md5);
|
|
}
|
|
} |