Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13657

Fix TestXPathRecordReader.testUnsupported_Xpaths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 8.3
    • Tests
    • None

    Description

      tTestXPathRecordReader.testUnsupported_Xpaths covers some negative cases for xpath

      While working on SOLR-12555, found that, here NPE thrown as rr is never set not the expected exception

           try {
            rr.addField("bold"  ,"b",        false);
            fail("A RuntimeException was expected: 'b' xpaths must begin with '/'.");
            }
          catch (RuntimeException ex) {  }
      

      Attachments

        Activity

          People

            munendrasn Munendra S N
            munendrasn Munendra S N
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: