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

Un-annotated fields in fully initialized @Tested classes having annotated injected fields should be left null #206

rliesenfeld opened this issue Sep 12, 2015 · 0 comments


Copy link

@rliesenfeld rliesenfeld commented Sep 12, 2015

Currently, if a @tested(fullyInitialized = true) class uses injection annotations (@Inject, etc.), any fields not annotated are also getting injected with a new instance (when a no-args constructor is found).

Said fields should be left null in this situation; only if none of the fields use annotations is that they all should get initialized.

@rliesenfeld rliesenfeld added the bug label Sep 12, 2015
@rliesenfeld rliesenfeld self-assigned this Sep 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.