Win a copy of Java XML & JSON this week in the XML and Related Technologies forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Any example for JUnit testing with RMI application?  RSS feed

 
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 promise I will be the best, most loyal friend ever! All for this tiny ad:
java tutor first lesson for free
https://coderanch.com/t/702613/java-tutor-lesson-free
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!