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


None yet

1 participant


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
@rliesenfeld rliesenfeld added a commit that closed this issue Sep 12, 2015
@rliesenfeld rliesenfeld Fixed bug where non-annotated fields in a @Tested(fullyInitialized = …
…true) were erroneously initialized; closes #206.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment