We make a test run, an stop the proxy after the run with proxy.stop() or proxy.start()
The wen make a new instance private static BrowserUpProxy browserupProxy = new BrowserUpProxyServer();
on proxy.start() we got the error java.lang.IllegalStateException: Proxy server is already started. Not restarting
ok
we think we check if the proxy is startet with proxy.isStartet() and got true, but we can't stop them!!!???!!!
We make a test run, an stop the proxy after the run with
proxy.stop()
orproxy.start()
The wen make a new instanceprivate static BrowserUpProxy browserupProxy = new BrowserUpProxyServer();
on
proxy.start()
we got the errorjava.lang.IllegalStateException: Proxy server is already started. Not restarting
ok we think we check if the proxy is startet withproxy.isStartet()
and got true, but we can't stop them!!!???!!!We got the stupid error
Proxy server is already stopped. Cannot re-stop
This is very confusing.
How is the right way to stop the proxy and start a new instance on the same Test-Run in the same Java-VM??
greats