Spring/Hibernate/Junit example of testing DAO against HSQLDB

后端 未结 5 1501

I\'m working on trying to implement a JUnit test to check the functionality of a DAO. (The DAO will create/read a basic object/table relationship).

The trouble

5条回答
  •  庸人自扰
    2021-02-02 14:18

    I have recently implemented a similar solution in some of my code using Hibernate, Spring and HSQLDB.

    Its is worth noting that AbstractTransactionalJUnit4SpringContextTests has now be deprecated - but it is still pretty straight forward to test - I cover most the details here: http://automateddeveloper.blogspot.com/2011/05/hibernate-spring-testing-dao-layer-with.html

提交回复
热议问题