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

JAXP Tests: CatalogSupport2 and CatalogSupport3 generate incorrect messages upon failure

XMLWordPrintable

    • b21

        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)

              joehw Joe Wang
              joehw Joe Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: