Skip to content
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

Inline "lookupCredentials" methods #256

Merged

Conversation

darxriggs
Copy link
Collaborator

There was a mix of the lookupCredentials wrapper methods and using CredentialsProvider#lookupCredentials directly. This also resulted in different ways of mocking these calls in the tests.

As the mentioned methods were originally introduced for mocking purposes and PowerMockito now is anyway used in the tests to mock static methods, there is no need for these wrapper methods anymore.

There was a mix of the `lookupCredentials` wrapper methods and using
`CredentialsProvider#lookupCredentials` directly. This also resulted
in different ways of mocking these calls in the tests.

As the mentioned methods were originally introduced for mocking purposes
and PowerMockito now is anyway used in the tests to mock static methods,
there is no need for these wrapper methods anymore.
@scaytrase
Copy link
Member

Thanks @darxriggs !

@scaytrase scaytrase merged commit c5916d9 into jenkinsci:release/1.x Jan 6, 2020
@darxriggs darxriggs deleted the inline-credentials-lookup branch January 6, 2020 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants