您稍后将会看到,编写单元测试时,处理这个注入的log对象需要一个额外步骤。
As you'll see in just a moment, dealing with this injected log object when writing unit tests requires an extra step.
此外,通过提供被注入对象的存根实现、改进测试覆盖率和代码质量,可轻松对编写良好的应用程序类执行单元测试。
Furthermore, well-written application classes can easily be unit tested by providing stub implementations of the injected objects, improving test coverage and code quality.
此功能包还包括对Blueprint的扩展,所以容器可以将持久化单元和上下文注入到Blueprint bean中。
The feature pack also includes extensions to Blueprint so that the container can inject persistence units and contexts into Blueprint beans.
应用推荐