Testability patterns: Inversion of Control, Separated Presentation
可测试模式:控制反转、分离表现
Inversion of Control (IoC) and Dependency Injection (DI) are patterns that draw a lot of attention (see Resources).
控制反转(IoC)和依赖项注入(DI)是两种引起极大关注的模式(参见参考资料)。
Ds components needs no OSGi interfaces, and as such, can be mocked for testing or used in other inversion of control patterns like Spring.
DS组件不需要OSGi接口,这样,它可以在其他控制反转模式(如spring)里被模拟来测试或使用。
应用推荐