ソースを参照

fix[litemall-core]: throws Exception

Junling Bu 6 年 前
コミット
227af6dcbf

+ 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})
   @Test
-  public void testGensalt() {
+  public void testGensalt() throws Exception {
     PowerMockito.whenNew(SecureRandom.class).withNoArguments()
         .thenReturn(PowerMockito.mock(SecureRandom.class));
     Assert.assertEquals("$2a$10$......................", BCrypt.gensalt());