When you read articles, every time it is said that you have to test your components with unit tests but rarely it is said how.
I've done some research on internet to find an eventual way to generate unit tests for well known components like DAOs, hibernate beans, some parts of beans (tests on the check of parameters passed to a method), ...
Unfortunately it seems that it doesn't exist any tool like that.
For some components, I believe that tests could be generated because it is always the same. Developers would win a lot of time and their code would become much more safe.
Does any body have heard about something like that???