Skip to content
Snippets Groups Projects
Commit ef051b8d authored by felmer's avatar felmer
Browse files

fixing ServiceFinderTimeoutTest

SVN: 27317
parent 89a9c8f5
No related branches found
No related tags found
No related merge requests found
...@@ -61,12 +61,10 @@ public class ServiceFinderTimeoutTest extends AssertJUnit ...@@ -61,12 +61,10 @@ public class ServiceFinderTimeoutTest extends AssertJUnit
public void testTimeout() public void testTimeout()
{ {
ServiceFinder finder = new ServiceFinder("", ""); ServiceFinder finder = new ServiceFinder("", "");
ITestInterace remoteService =
finder.createService(ITestInterace.class, "http://localhost:" + server.getPort(),
ONE_SECOND_TIMEOUT);
try try
{ {
remoteService.timeoutProvokingMethod(); finder.createService(ITestInterace.class, "http://localhost:" + server.getPort(),
ONE_SECOND_TIMEOUT);
fail("Timeout exception expected"); fail("Timeout exception expected");
} catch (RemoteAccessException rae) } catch (RemoteAccessException rae)
{ {
...@@ -108,6 +106,7 @@ public class ServiceFinderTimeoutTest extends AssertJUnit ...@@ -108,6 +106,7 @@ public class ServiceFinderTimeoutTest extends AssertJUnit
{ {
serverSocket = new ServerSocket(0); serverSocket = new ServerSocket(0);
serverSocket.setSoTimeout(1000); serverSocket.setSoTimeout(1000);
System.out.println("ServiceFinderTimeoutTest.NotRespondingServer.runInternal() "+serverSocket);
while (keepRunning.get()) while (keepRunning.get())
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment