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

Add OutputAnalyzer(Path) constructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 13
    • 13
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: