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

Add OutputAnalyzer(Path) constructor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • 13
    • 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 {

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

              Created:
              Updated:
              Resolved: