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

Support for @TestSubject to do constructor injection #185

Open
sazzer opened this issue Oct 19, 2016 · 6 comments
Open

Support for @TestSubject to do constructor injection #185

sazzer opened this issue Oct 19, 2016 · 6 comments

Comments

@sazzer
Copy link

sazzer commented Oct 19, 2016

Sometimes we have classes under test that use Constructor injection instead of Property injection. It would be very useful to be able to use the @Mock/@Testsubject pattern with these objects and have EasyMock automatically instantiate the object and inject mocks into the constructor as appropriate.

Currently the only way that we have of doing this is to do the construction manually in an @before method, which feels like something that EasyMock can very easily do for us.

@henri-tremblay
Copy link
Contributor

Yes. It is indeed a really useful feature to have. Will be in the next release.

@CharanyaR
Copy link

@henri-tremblay I will take up this issue.

@henri-tremblay
Copy link
Contributor

@CharanyaR If you can, it will be awesome

@yoeris
Copy link

yoeris commented Jun 27, 2019

Any news on progress for this issue ?
Having the same needs here :-)

@henri-tremblay
Copy link
Contributor

Sorry. Not yet. But feel free to contribute ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@sazzer @henri-tremblay @CharanyaR @yoeris and others