private static void validateAsyncLog() throws IOException {
  List<String> logFileLines=FileUtils.readLines(new File(AsyncDBTestUtil.getAsyncLogFilePath()),StandardCharsets.UTF_8);
  int expectedLineCount=3;
  if (expectedLineCount != logFileLines.size()) {
    throw new IntegrationTestFailedException("Async-log file should have " + expectedLineCount + "' lines, but has "+ logFileLines.size()+ " lines.");
  }
  int lineIndex=0;
  for (  String logFileLine : logFileLines) {
    String[] fields=logFileLine.split("" + AsyncLogWriter.FIELD_SEPARATOR);
    if (fields.length != AsyncDBTestUtil.LOG_FILE_FIELDS) {
      throw new IntegrationTestFailedException("Log file nr " + lineIndex + " has "+ fields.length+ " fields, but must have "+ AsyncDBTestUtil.LOG_FILE_FIELDS);
    }
    lineIndex++;
  }
}

private static void validateAsyncLog ( ) throws IOException { List < String > logFileLines = FileUtils . readLines ( new File ( AsyncDBTestUtil . getAsyncLogFilePath ( ) ) , StandardCharsets . UTF_8 ) ; int expectedLineCount = 3 ; if ( expectedLineCount != logFileLines . size ( ) ) { throw new IntegrationTestFailedException ( "Async-log file should have " + expectedLineCount + "' lines, but has " + logFileLines . size ( ) + " lines." ) ; } int lineIndex = 0 ; for ( String logFileLine : logFileLines ) { String [ ] fields = logFileLine . split ( "" + AsyncLogWriter . FIELD_SEPARATOR ) ; if ( fields . length != AsyncDBTestUtil . LOG_FILE_FIELDS ) { throw new IntegrationTestFailedException ( "Log file nr " + lineIndex + " has " + fields . length + " fields, but must have " + AsyncDBTestUtil . LOG_FILE_FIELDS ) ; } lineIndex ++ ; } }
checks only format correctness , logging more thoroughly tested in respective unit test .
