My code is as follows:
Response response = eds.dm(eDR, eR);
In dm method I have some thing like this:
@Inject
private EDRE sdfs;
But it is not getting injected while running testcase.
首先,我认为您没有集成任何实现控制反转(依赖注入)概念和注释的技术(向导,弹簧等),@ Inject仅在应用程序中具有依赖注入功能时才有效。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.