Are there any methods available in EasyMock or Unitils Mock (Not Unitils supported by EasyMock) to inject layouts directly into a class test?
For example, in Mockito, you can inject mocks directly into class member variables,
public class TimeTrackerTest { @InjectMocks
Can this be done with EasyMock or Unitils Mock? In easymock, we need a separate setter method in CUT to support injection from tests. Am I right or is the direction of the injection somehow possible?
-Thanks
source share