影响单元测试的不可测试代码及其解决办法The“dependencyinjection”(DI)techniqueisawaytoimprovetestabilityandmaintainabilityofobject-orientedcode.Typicallyadoptionofdependencyinjectioniscoupledwithadoptionofadependencyinjectionframework,suchasGuice1orSpring2.Thisproposalshowshowdepen