| Article: |
Wire Hibernate Transactions in Spring | |
| Subject: | JUnit Test AOP? | |
| Date: | 2005-05-25 21:17:33 | |
| From: | dslevine | |
|
I love the article, thank you. I have a question about how I can run unit tests on some of this. If I am not using Spring AOP for Hibernate session/transaction management, it is easy to unit test my DAO layer. If I assume that AOP will create or start the transaction, then a unit test will fail without AOP because there is not transaction. And if i try to use object injection into my unit test (which is a great part of Spring) I need to inject an TransactionProxyFactoryBean instead of the DAO interface object that is needed.
|
||
Women in Technology
Hear us Roar
