I am using Spring with Hibernate, and using AOP to create a proxy to handle my transaction / session management. Lets say that proxy is at the DAO level. So instead of injecting the DAO bean into a business logic class, I inject the interceptor proxy.
How can I test this outside the Spring framework? i.e. for a Junit test to test something that requires the AOP presence?
Even if I use the xml bean factory to get the interceptor proxt bean (to the DAO), I cannot programmatically pass a the proxy class into the setter for the DAO.
Am I missing a key concept here?
n00b dan =)