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

Allow unit test classes to specify core name during setup

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-BETA
    • Fix Version/s: 4.0
    • Component/s: Build
    • Labels:
      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

              • Assignee:
                hossman Hoss Man
                Reporter:
                anithian Amit Nithian
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: