Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-341

override config for test cases

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • Tests
    • None

    Description

      It is hard to write a test case for a repository connector using the existing *.Base classes that uses a different config file.
      The config files are actually written in org.apache.manifoldcf.core.tests.Base.localSetup().
      The localSetup method is called by all sub-classes in their overridden localSetup function. each sub-class adds something specific for the test case. If I wanted to put something different in the config files I had to override localSetup() and copy all content of the superclasses' localSetup to it. This can be avoided by moving the code that writes the config file in the initialize() method. It makes also more sense in that the creation of the config files and the provision of their content are now in the same function.

      Attachments

        1. CONNECTORS-341.patch
          4 kB
          Martin Goldhahn

        Activity

          People

            Unassigned Unassigned
            mgoldhahn Martin Goldhahn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: