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

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