@Override
 protected boolean tearDownServer(boolean force) {
   if (select == null || !select.isRunning()) {
     return true;
   }
   select.stopEndpoint();
   return !select.isRunning();
 }
예제 #2
0
  @AfterClass
  public static void afterClass() throws Exception {
    if (server != null) {
      server.stop();
      server = null;
    }

    if (threadSelector != null) {
      threadSelector.stopEndpoint();
      threadSelector = null;
    }
  }
예제 #3
0
 @AfterClass
 public static void stopServer() throws Exception {
   selectorThread.stopEndpoint();
 }