[jboss-jira] [JBoss JIRA] (WFCORE-4385) DomainTestSupport and DomainLifecycleUtil should be AutoCloseable

Brian Stansberry (Jira) issues at jboss.org
Sat Mar 23 12:20:00 EDT 2019


Brian Stansberry created WFCORE-4385:
----------------------------------------

             Summary: DomainTestSupport and DomainLifecycleUtil should be AutoCloseable
                 Key: WFCORE-4385
                 URL: https://issues.jboss.org/browse/WFCORE-4385
             Project: WildFly Core
          Issue Type: Enhancement
          Components: Management, Test Suite
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry


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.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list