This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I've read some short JUnit tutorials and write some test cases myself. But most tutorial teach me on doing testing against standalone app. So my questions come. How to do unit testing against distributed application like RMI? Do I need to learn Mock Object? Thanks.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep
If you want to use JUnit, then yes mock objects help. The trick from a testing standpoint I find is that you want to simulate not just correct behaviour, but what the behaviour is when you encounter problems (e.g. simulated network partitions).