This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to write a Junittesting 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.