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

Allow unit test classes to specify core name during setup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0-BETA
    • 4.0
    • Build
    • None

    Description

      When creating a unit test extending SolrTestCaseJ4, the corename is forced to "collection1" which can be problematic if you want to do unit tests relying on schema/solrconfig specific to a core. Rather than hard-coding to "collection1" allow this to be specified in the initCore method.

      Attachments

        1. SOLR-3826_1.patch
          4 kB
          Amit Nithian
        2. SOLR-3826.patch
          3 kB
          Amit Nithian

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              anithian Amit Nithian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: