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

Allow unit test classes to specify core name during setup

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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

        Issue Links

          Activity

            People

            • Assignee:
              hossman Chris M. Hostetter
              Reporter:
              anithian Amit Nithian

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment