Add OutputAnalyzer(Path) constructor

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 13
    • Component/s: hotspot
    • None
    • b18

      This is useful for looking for patterns in logging files that can grow quite large.
      This is taken from code from

          /**
           * Verify that the contents of the file contains the given the set of strings
           *
           * @param file File to check for expectedStrings
           * @param expectedStrings Strings that file should contain
           * @throws RuntimeException If the string was not found
           * @throws IOException If the file cannot be opened
           */
          public OutputAnalyzer shouldContain(File file, String ... expectedStrings) throws IOException {

            Assignee:
            Stefan Karlsson
            Reporter:
            Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: