Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4385

DomainTestSupport and DomainLifecycleUtil should be AutoCloseable

    XMLWordPrintable

Details

    Description

      Let DomainTestSupport and DomainLifecycleUtil be used in try-with-resources.

      Once closed the objects should not be usable; i.e. this differs from stop(), where start() can be called again.

      DomainTestSupport.stop() can closes the DomainLifecycleUtil objects it controls though, preventing their subsequent use. This will protect against the WFCORE-4384 problem.

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: