Being Lazy in your Unit Tests
Last but not least, we'll need the ability to test our lazy application from J-Unit. This is easily done by overriding the setUp and tearDown methods of the TestCase class. I prefer to keep this code in a convenient abstract TestCase class for all of my tests to extend.
Lazy Initialization and the DAO pattern with Hibernate and Spring (3)
最新推荐文章于 2024-07-18 13:50:38 发布