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

Inject LDIF files at the right level when running tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 2.0.0-M1
    • None
    • 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

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: