Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to write unit testcase for distributed app like RMI

 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tom Stevns
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tom for your inputs!
 
Reid M. Pinchback
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic