Unit tests should use unique Xnio instances
-------------------------------------------
Key: JBREM-1256
URL:
https://jira.jboss.org/browse/JBREM-1256
Project: JBoss Remoting
Issue Type: Task
Security Level: Public (Everyone can see)
Affects Versions: 3.1.0.Beta2
Reporter: Ron Sigal
Assignee: Ron Sigal
Priority: Minor
Fix For: 3.1.0.Beta3
org.jboss.xnio.Xnio has a default instance which can be acquired by calling
Xnio.getInstance(). The problem is that once this default instance is closed, it cannot
be reused.
The cobertura maven plugin executes all tests in the same JVM, so once the default Xnio
instance is closed, subsequent tests fail.
The workaround is to always use a unique Xnio instance, which can be created by calling
public static Xnio getInstance(final String name) throws IOException;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira