Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1307

Inject LDIF files at the right level when running tests

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 2.0.0-M1
    • Component/s: None
    • Labels:
      None

      Description

      When running integration tests, we can use @ApplyLdif or @ApplyLdifFiles annotations. The only problem is that those LDIFs are injected and rollbacked for every method, whatever the cleanup level set.

      It would be way better to inject and rollback files on the correct level :

      • at the Suite level if the annotation is present into the suite
      • at the class level if the annotation is present into the test class
      • at the method level if the annotation is present into the method.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elecharny Emmanuel Lecharny
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: