您又是怎样来平衡那些需要完整的容器、数据库的端到端(end to end)测试和用Mocks替换关键的JEE构件而进行的轻量级测试的呢?
How doyoubalance writing endto end teststhatrequire afullcontainer and database (but replicate the full environment) versus lighter tests that make useofmocks for keyJEE constructs?