protected boolean isOutputLineExpected(final String line,final String[] expectedPrefixes,final boolean filePathsAreExpected){
  final String trimmed=line != null ? line.trim() : null;
  if (StringUtils.isNotEmpty(trimmed)) {
    if (filePathsAreExpected && isFilePath(line)) {
      return true;
    }
    if (expectedPrefixes != null) {
      for (      final String prefix : expectedPrefixes) {
        if (StringUtils.startsWithIgnoreCase(line,prefix)) {
          return true;
        }
      }
    }
    return false;
  }
  return true;
}

protected boolean isOutputLineExpected ( final String line , final String [ ] expectedPrefixes , final boolean filePathsAreExpected ) { final String trimmed = line != null ? line . trim ( ) : null ; if ( StringUtils . isNotEmpty ( trimmed ) ) { if ( filePathsAreExpected && isFilePath ( line ) ) { return true ; } if ( expectedPrefixes != null ) { for ( final String prefix : expectedPrefixes ) { if ( StringUtils . startsWithIgnoreCase ( line , prefix ) ) { return true ; } } } return false ; } return true ; }
this method evaluates a line of output to see if it contains something that is expected . if not , it returns false . there are 3 kinds of expected lines : 1 ) lines that begin with an expected prefix 2 ) lines that contain a folder path ( / path / path : ) 3 ) empty lines all other types of lines are unexpected .
