aspose file tools*
The moose likes Testing and the fly likes How to write unit testcase for distributed app like RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to write unit testcase for distributed app like RMI" Watch "How to write unit testcase for distributed app like RMI" New topic
Author

How to write unit testcase for distributed app like RMI

Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
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
Tom Stevns
Ranch Hand

Joined: Nov 20, 2001
Posts: 120
Hello Doug !
Maybe this would help you !
www7b.software.ibm.com/wsdd/library/ techarticles/0210_kaja/kaja.html
www.dstc.edu.au/Downloads/utest/utest.pdf


Regards Tom Stevns, SCJP2
Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
Thanks Tom for your inputs!
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
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).


Reid - SCJP2 (April 2002)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to write unit testcase for distributed app like RMI