Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
227af6dc
Commit
227af6dc
authored
Jun 14, 2019
by
Junling Bu
Browse files
fix[litemall-core]: throws Exception
parent
09ad661e
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-core/src/test/java/org/linlinjava/litemall/core/util/bcrypt/BCryptTest.java
View file @
227af6dc
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment