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

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

XMLWordPrintable

    • b04
    • 18
    • b18
    • generic
    • generic

        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.

              akasko Alex Kasko
              akasko Alex Kasko
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: