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

Remove remaining non-wired RestTemplate constructors #755

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ctsims
Copy link
Member

@ctsims ctsims commented Aug 21, 2020

Removes the last places where a RestTemplate was constructed from scratch rather than being autowired for the same reasons outlined in #754 and adds tests whenever practical.

Also refactors out the classes using those RestTemplates into explicit components, rather than Context injected beans, since there's no reason to have Context injected beans without any polymorphism.

Note: These changes affect a set of services which are a a bit less straightforward to test (case claim and "FormattedQuestionsService" (I think that's "Beautiful forms"?) and I haven't quite touched all of those paths yet to confirm that the Context Bean -> Component change is indeed a no-op

@ctsims ctsims added the product/invisible Change has no end-user visible impact label Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/invisible Change has no end-user visible impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants