Derby
  1. Derby
  2. DERBY-1557

Add a JUnit test decorator that creates a database at setUp and removes it at tearDown.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3.1.4
    • Component/s: Test
    • Labels:
      None

      Description

      Could be the outer level decorator for top-level suites.

        Activity

        Hide
        Daniel John Debrunner added a comment -

        I think this can be closed as these decorators exist

        TestConfiguration.singleUseDatabaseDecorator() returns a decorator that creates a database at setup and removes it at tearDown. It's used to provide a unique database for a set of tests.

        CleanDatabaseTestSetup() is a decorator that cleans the default database (current database) at setup and tearDown, removing all user created objects.

        Show
        Daniel John Debrunner added a comment - I think this can be closed as these decorators exist TestConfiguration.singleUseDatabaseDecorator() returns a decorator that creates a database at setup and removes it at tearDown. It's used to provide a unique database for a set of tests. CleanDatabaseTestSetup() is a decorator that cleans the default database (current database) at setup and tearDown, removing all user created objects.

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel John Debrunner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development