class ConsoleServer extends AbstractServer {

  public void process(final BuildDetails details) {
    if (!isStatus(ServerStatus.PROCESSING)) {
      return;
    }

    clearScreen();
    printResult(details);
    printer.println();
    if (BuildSummary.SUCCESS == details.getState() || null == details.getError()) {
      printTest(details);
    } else {
      printer.println(NL_0, details.getError());
    }

    try {
      printer.flush();
    } catch (final IOException e) {
      logger.trace("Ignore exception", e);
    }
  }

}