Our application has Spring injection of DAO objects into its methods.
My question, then, is how to best
test the application's methods using, I'm currently trying,
JUnit.
Although I can do some relatively simple tests, to really test the method the Test class tests, I'd also have to inject the DAO object into the Test class.
Does this make sense?
A Test could have basically anything deemed important, but I'm trying to see how others do this type of testing.
Thanks in advance for any advice or suggestions.
-mike