-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ELY-2684] Unit test code refactor (removed duplicates) #2041
Conversation
38b6a5e
to
1a66c35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, @sugan0tech, I've just added a small comment.
For the title and commit message, it would be good to include information about the specific test that was updated, e.g., [ELY-2648] Update tests in OTPTest to use a common helper method for tests where the password should remain unchanged"
@@ -1082,6 +994,40 @@ private CallbackHandler createClientCallbackHandler(String username, String pass | |||
return ClientUtils.getCallbackHandler(new URI("remote://localhost"), context); | |||
} | |||
|
|||
private void testAuthentication(String seed, int sequenceNumber) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to rename this to explain what it does, e.g., checkPasswordRemainsUnchanged or testPasswordRemainsUnchanged, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure 👍
…the tests with unchanged passwords.
1a66c35
to
075dcb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much @sugan0tech!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks @sugan0tech
https://issues.redhat.com/browse/ELY-2684