浏览代码

fix[litemall-core]: throws Exception

Junling Bu 6 年之前
父节点
当前提交
227af6dcbf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      litemall-core/src/test/java/org/linlinjava/litemall/core/util/bcrypt/BCryptTest.java

+ 1 - 1
litemall-core/src/test/java/org/linlinjava/litemall/core/util/bcrypt/BCryptTest.java

@@ -91,7 +91,7 @@ public class BCryptTest {
 
 
   @PrepareForTest({BCrypt.class, SecureRandom.class})
   @PrepareForTest({BCrypt.class, SecureRandom.class})
   @Test
   @Test
-  public void testGensalt() {
+  public void testGensalt() throws Exception {
     PowerMockito.whenNew(SecureRandom.class).withNoArguments()
     PowerMockito.whenNew(SecureRandom.class).withNoArguments()
         .thenReturn(PowerMockito.mock(SecureRandom.class));
         .thenReturn(PowerMockito.mock(SecureRandom.class));
     Assert.assertEquals("$2a$10$......................", BCrypt.gensalt());
     Assert.assertEquals("$2a$10$......................", BCrypt.gensalt());