Commit 227af6dc authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-core]: throws Exception

parent 09ad661e
......@@ -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());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment