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

Fix jaxp/javax/xml/jaxp/unittest/transform/SurrogateTest.java test

    XMLWordPrintable

    Details

    • Introduced In Build:
      b04
    • Introduced In Version:
      18
    • Resolved In Build:
      b18
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        jaxp/javax/xml/jaxp/unittest/transform/SurrogateTest.java test introduced in JDK-8268457 contains minor flaws that prevents it to actually verify the code change:

        1. compareWith* helper methods are used without Assert.assertTrue() wrapping, so they are effectively ignored

        2. this.getClass().getResourceAsStream() is used to load test input data, it actually returns null in test run, so transformation is done without input data

        Note, that SurrogateTest.zip reproducer attached to JDK-8268457 is valid and fully functional, problems likely were introduced when it was adapted into test.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                akasko Alex Kasko
                Reporter:
                akasko Alex Kasko
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: