作业帮 > 英语 > 作业

英语翻译You typically combine StrutsTestCase with Cactus when yo

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/17 03:18:57
英语翻译
You typically combine StrutsTestCase with Cactus when you have code that depends on J2EE container
resources.For example,assume that you have an Action object that depends on local EJB Entity bean.Suffice to
say,it is a good idea whenever possible not to rely too heavily on container resources,as your code gets tightly
coupled with the J2EE environment and harder to test.The problem with Cactus based StrutsTestCase tests is
that Cactus is hard to set up (but you only have to do it once),and the tests take longer to run than the Mock
Object equivalent test.
通常当你把爱与你strutstestcase代码,取决于集装箱J2EE资源.例如,假设你的行动目标,取决于当地EJB实体豆.足以说这是一个好主意尽可能不要过份依赖集装箱资源,你得到代码紧跟在J2EE环境和困难的考验.爱的strutstestcase的测试问题是难以成立红(但只要做一次),需要较长时间的考验和经营目标相比模拟测试.