fix[litemall-core]: throws Exception

This commit is contained in:
Junling Bu
2019-06-14 19:36:02 +08:00
parent 09ad661e68
commit 227af6dcbf

View File

@@ -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());