/** * Sets up an Ambry frontend server. * * @throws Exception */ @BeforeClass public static void setup() throws Exception { ambryRestServer = new RestServer(FRONTEND_VERIFIABLE_PROPS, CLUSTER_MAP, new LoggingNotificationSystem()); ambryRestServer.start(); nettyClient = new NettyClient("localhost", SERVER_PORT); }
/** Shuts down the Ambry frontend server. */ @AfterClass public static void teardown() { if (nettyClient != null) { nettyClient.close(); } if (ambryRestServer != null) { ambryRestServer.shutdown(); } }