mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-29 16:14:16 +08:00
update result page
This commit is contained in:
@@ -14,14 +14,7 @@ public class TestEncrypt {
|
||||
@Test
|
||||
public void test() {
|
||||
String hash = BCrypt.hashpw("mypasswordhere", BCrypt.gensalt());
|
||||
System.out.println("hash = " + hash);
|
||||
System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChk() {
|
||||
String hash = "$2a$10$RCXxfEygwHQeF4BKjx5Uwu/C72HqoCN.jKpNSNdwizcy7m301C9Am";
|
||||
System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash));
|
||||
assert BCrypt.checkpw("mypasswordhere", hash);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ public class TestMessageFormat {
|
||||
@Test
|
||||
public void testLang() {
|
||||
assert Lang.messages != null;
|
||||
System.out.println(Lang.messages);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public class TestReflection {
|
||||
|
||||
@Test
|
||||
public void testBlock() {
|
||||
System.out.println(Block.inverseMap);
|
||||
assert Block.inverseMap != null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@ public class TestRegex {
|
||||
|
||||
@Test
|
||||
public void testStudentId() {
|
||||
System.out.println("2011130201233".matches(STUDENT_ID_REGEX));
|
||||
System.out.println("2015130201233".matches(STUDENT_ID_REGEX));
|
||||
assert !"2011130201233".matches(STUDENT_ID_REGEX);
|
||||
assert "2015130201233".matches(STUDENT_ID_REGEX);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user