Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3751

Remove test classes duplication across the different modules

    XMLWordPrintable

    Details

    • Type: Code Task
    • Status: Volunteer Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: Unit Testing Framework
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      From the conversation in https://github.com/DSpace/DSpace/pull/1866

      The (pre-existing) testing framework builds a test dspace install directory by combining all "src/test/data/dspaceFolder" directories of all modules (see https://github.com/DSpace/DSpace/blob/dspace-6.2/src/main/assembly/testEnvironment.xml#L30). So all Spring beans defined in test-specific Spring XML files, need to be present in the test resources of all modules. That is why I had to add a copy of that class to dspace-api and dspace-spring-rest. Another example of such a class is org.dspace.identifier.MockDOIConnector.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bollini Andrea Bollini (4Science)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: