Commit 74f50570 authored by Andre Freyssinet's avatar Andre Freyssinet

Minor changes.

parent 4562a178
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2012 ScalAgent Distributed Technologies
* Copyright (C) 2017 - 2018 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -49,6 +49,18 @@ public class BridgeTest23x extends TestCase {
public void run() {
try {
for (int i=0; i<1; i++)
test(i);
} catch (Throwable exc) {
exc.printStackTrace();
error(exc);
} finally {
System.out.println("end test ");
endTest();
}
}
public void test(int idx) throws Exception {
System.out.println("servers start");
startAgentServer((short)0, new String[]{"-DTransaction.UseLockFile=false"});
Thread.sleep(1000);
......@@ -109,20 +121,13 @@ public class BridgeTest23x extends TestCase {
AdminModule.deleteJMSPBridgeConnection(0, "cnx1", true);
System.out.println("Bridge connection deleted");
Thread.sleep(500L);
// Thread.sleep(500L);
AdminModule.stopServer();
System.out.println("server stopped");
} catch(Exception exc){
exc.printStackTrace();
error(exc);
}
} catch (Throwable exc) {
exc.printStackTrace();
error(exc);
} finally {
System.out.println("end test ");
endTest();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment