Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222713

Add OutputAnalyzer(Path) constructor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b18

      Description

      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 {

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: