예제 #1
0
 @BeforeClass
 public static void startServer() throws Exception {
   server = new HTTPMemServer();
   try {
     server.start();
   } catch (Exception e) {
     server.stop();
     throw e;
   }
 }
예제 #2
0
 @AfterClass
 public static void stopServer() throws Exception {
   server.stop();
   server = null;
 }