Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20647

Use JSoup to parse HTML in JUnit tag page test

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 14.10.3
    • This is independent of environment.
      OS: Arch Linux
      xwiki-platform-distribution-jetty-hsqldb-14.10.3
    • Unknown

    Description

      Currently the tag test JUnit code uses hard-coded HTML strings to verify the expected and actual generated HTML output.
      This looks very dirty as some test cases contains 10+ lines of HTML.

      Proposed Solution:
      Use JSoup to parse the hard-coded HTML strings. This will make the code cleaner and follow the XWiki testing code style

      Attachments

        Activity

          People

            rajat Rajat Khanduri
            rajat Rajat Khanduri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: