TestNG and Spring 3

前端 未结 5 756
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 16:27

What is the best practice way to do unit testing with Spring? I assume the combination TestNG & jmockit with Spring 3 isn\'t bad, so that\'s what I\'m doing right now, b

5条回答
  •  [愿得一人]
    2021-01-05 17:14

    Your test ckass needs to extend AbstractTestNGSpringContextTests. Or if your code is testing database acces another useful class to extend is AbstractTransactionalTestNGSpringContextTests.

提交回复
热议问题