示例#1
0
 @After
 public void destroy() throws Exception {
   if (clientFactory != null) {
     clientFactory.stop();
   }
   if (server != null) {
     server.stop();
     server.join();
   }
 }
 @After
 public void destroy() throws Exception {
   if (server != null) {
     server.stop();
     server.join();
   }
   if (proxy != null) {
     proxy.stop();
     proxy.join();
   }
   factory.stop();
 }