Uploaded image for project: 'JBoss Remoting (3+)'
  1. JBoss Remoting (3+)
  2. REM3-52

Unit tests should use unique Xnio instances

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • 3.1.0.Beta3
    • 3.1.0.Beta2
    • None

      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;

            Unassigned Unassigned
            rsigal@redhat.com Ronald Sigal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: