aspose file tools
The moose likes Distributed Java and the fly likes Any example for JUnit testing with RMI application? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Any example for JUnit testing with RMI application?" Watch "Any example for JUnit testing with RMI application?" New topic
Author

Any example for JUnit testing with RMI application?

Helen Ma
Ranch Hand

Joined: Nov 01, 2011
Posts: 451
I am trying to write a Junit testing to test the clients' sides application when the multiple clients connecting to the single server via RMI.

Is there any code example?

I tried to develop a unit test when 2 clients connecting to a server. The server is a DVD rental application. The clients are renting DVD's. The server is manually started before the test is run.
Before the test, the DVD the clients will rent has 6 copies. No matter how many times tests are run, the DVD still has 6 copies.
I expect the result should be 4 copies after the first execution.


I guess the clients are not talking to the server during the test.
The sampleproject.db comes from from Monkhouse's SCJD exam guide.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Any example for JUnit testing with RMI application?
 
Similar Threads
Passed 147/155
Security in heterogeneous environment?
passed with 146/155
Test by JUnit
How to unit test web application