Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about multi-thread testing .

 
Zhou Can
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the RMI and factory pattern to design my server . Now , i am testing my result . In my testing by multi-thread , I found that when i firstly book ( including building all of the RemoteDataImpl objects ) , the result is wrong . But in my following booking( all of the RemoteDataImpl objects have been built in prior booking ), all result are OK . Could u tell me what happened in my testing . Is this scene because of RMI ?
 
Jawad Kakar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First time around you get wrong result, I am sure it is not because of RMI, since you have not post your code it would be hard to know what might be wrong with your test/code.
Jawad
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Zhou Can:
I found that when i firstly book ( including building all of the RemoteDataImpl objects ) , the result is wrong

What do you mean by the result is wrong?
 
Zhou Can
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that the left seats number is not right .
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
My first guess is something is wrong with your lock/unlock function.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic