We have a Spring + Ibatis based J2EE app. I planned to wrap around our DAO's (which call iBatis templates ...by getting spring beans) with test cases. I don't have much experience with JUnit so I thought that simply making an object of my DAO and then calling one of the methods will work. But wrong I was, turns out that the whole J2EE app runs on appserver (container) but obviously the JUnit test cases are outside the container. So, in my test case, when I make object of the dao and call a method...it fails on a line like this which is in my DAO method
ApplicationInitializer.getApplicationContext().getBean("myMapclientBean");
So I went on a Google hunt...came across some posts and following the tubes I ended up on Spring's 4 day training course.
Wanted to get your guys opinion on what do you think about this course? Is it valuable for the price? And can a person learn this stuff on their own too? By following couple of books? (Maybe not in 4 days but, say, over a month).
oh, and I'm still not able to Unit tests these DAO's...>_<