Test scriptedAcceptanceTests = new TestSetup(acceptanceTestSuite) { private Thread serverThread;  protected void setUp() throws Exception { super.setUp(); ATServer server = new ATServer(acceptanceTestSuite); serverThread = new Thread(server, "ATServer"); serverThread.start(); server.waitForInitialization(); }  protected void tearDown() throws Exception { serverThread.interrupt(); super.tearDown(); }  public String toString() { return "Acceptance Test Server Context"; } };
Test scriptedTests = new AcceptanceTestServerSetUp(acceptanceTestSuite, false); Test scriptedTestsThreaded = new AcceptanceTestServerSetUp(acceptanceTestSuite, true);
    public static Test suite() {        final AcceptanceTestSuite acceptanceTestSuite = new AcceptanceTestSuite();        Test scriptedAcceptanceTests = new TestSetup(acceptanceTestSuite) {            private Thread serverThread;            protected void setUp() throws Exception {                super.setUp();                ATServer server = new ATServer(acceptanceTestSuite);                serverThread = new Thread(server, "ATServer");                serverThread.start();                server.waitForInitialization();            }            protected void tearDown() throws Exception {                serverThread.interrupt();                super.tearDown();            }            public String toString() {                return "Acceptance Test Server Context";            }        };        TestSuite acceptanceTests = new TestSuite();        acceptanceTests.addTestSuite(TimerTest.class);        acceptanceTests.addTest(scriptedAcceptanceTests);        return acceptanceTests;    }