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

JAXP Tests: CatalogSupport2 and CatalogSupport3 generate incorrect messages upon failure

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: xml
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      Negative tests in CatalogSupport2 and CatalogSupport3 expect Exceptions, but when they failed, they produced misleading messages such as the following:

      test catalog.CatalogSupport2.testDOMC(false, true, "file:///C:/ade/mesos/work_dir/jib-master/install/jdk12-jdk.406/src.full/open/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport.xml", "C:/ade/mesos/work_dir/jib-master/install/jdk12-jdk.406/src.full/open/test/jaxp/javax/xml/jaxp/unittest/catalog/system.xml", catalog.CatalogSupportBase$MyHandler@7ce3e5a6, "Test system entry"): failure
      java.lang.AssertionError: expected [Test system entry] but found [Test entry]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:496)
      at org.testng.Assert.assertEquals(Assert.java:125)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joehw Joe Wang
                Reporter:
                joehw Joe Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: