You can do this :)
You have to start a server in your test.
Server.createWebServer("-web", "-webAllowOthers", "-webPort", "8082").start();
and you can then access the db via a web browser at following address: http://localhost:8082/ In order to access the db you will have to stop your unit test thread. Do something like
boolean sleep = true;
while(sleep)
Thread.sleep(10000);
This will allow you to connect to the db.
No comments:
Post a Comment