// Path: standalone/src/test/java/au/com/sensis/stubby/test/support/TestServer.java
// public class TestServer {
// 
//     public static final int FREE_PORT = 0; // let operating system choose a free port
//     public static final int NUM_SERVER_WORKERS = 2;
// 
//     private static ServerInstance server;
// 
//     public static void start() {
//         try {
//             server = new HttpServerInstance(FREE_PORT, new ServerHandler(), Executors.newFixedThreadPool(NUM_SERVER_WORKERS));
//         } catch (Exception e) {
//             throw new RuntimeException("Error starting server", e);
//         }
//     }
// 
//     public static int getPort() {
//         return server.getAddress().getPort();
//     }
// 
//     public static boolean isRunning() {
//         return (server != null);
//     }
// 
// }


import org.junit.BeforeClass;
import au.com.sensis.stubby.test.support.TestServer;
package au.com.sensis.stubby.test;



public class StandaloneSuiteTest extends AllTests {

    @BeforeClass
    public static void setUp() {
// Path: standalone/src/test/java/au/com/sensis/stubby/test/support/TestServer.java
// public class TestServer {
// 
//     public static final int FREE_PORT = 0; // let operating system choose a free port
//     public static final int NUM_SERVER_WORKERS = 2;
// 
//     private static ServerInstance server;
// 
//     public static void start() {
//         try {
//             server = new HttpServerInstance(FREE_PORT, new ServerHandler(), Executors.newFixedThreadPool(NUM_SERVER_WORKERS));
//         } catch (Exception e) {
//             throw new RuntimeException("Error starting server", e);
//         }
//     }
// 
//     public static int getPort() {
//         return server.getAddress().getPort();
//     }
// 
//     public static boolean isRunning() {
//         return (server != null);
//     }
// 
// }


// Path: standalone/src/test/java/au/com/sensis/stubby/test/StandaloneSuiteTest.java
import org.junit.BeforeClass;
import au.com.sensis.stubby.test.support.TestServer;

package au.com.sensis.stubby.test;



public class StandaloneSuiteTest extends AllTests {

    @BeforeClass
    public static void setUp() {
        if (!TestServer.isRunning()) { // keep running for all tests