You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: