j2ee without ejb书中谈到EJB测试的硬伤

         
chenge 04-11-23

j2ee without ejb书中谈到EJB单元测试的硬伤。如果难以测试,质量如何保证?

写EJB不做单元测试吗?

knight_qmh
2004-11-29 10:28

可用junitejb测试

ljshan
2004-11-29 14:32

If you need to test system-level services such as transaction, EJB-specific security mechanisim, the only way is to use in-container test. But for some container-indepent function, i think out-of-container unit testing is enough, for example, testing SLSB units. For me, the out-of-container testing has the first priority: it is easier to implement, speed is much faster (w/ AS starting overhead).