how to start multiple instance of an application in a test

Posted by BenZen on Stack Overflow See other posts from Stack Overflow or by BenZen
Published on 2010-05-13T16:08:51Z Indexed on 2010/05/13 16:14 UTC
Read the original article Hit count: 206

Filed under:
|
|
|

Hi

I m working on a client-server program, where there is no test at all. When i try to do some test with two server, it's look like both server is connected to the same database. I think the reason is some bad use of static field.

So i wonder, is there a way to start two VM in a junit test?

© Stack Overflow or respective owner

Related posts about db

Related posts about unit-testing