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

Fix TestXPathRecordReader.testUnsupported_Xpaths

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.3
    • Component/s: Tests
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: