[arquillian-issues] [JBoss JIRA] (ARQ-1913) ARQ calls test methods with TCCL being set

Thomas Diesler (JIRA) issues at jboss.org
Mon Feb 9 07:59:49 EST 2015


    [ https://issues.jboss.org/browse/ARQ-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038751#comment-13038751 ] 

Thomas Diesler edited comment on ARQ-1913 at 2/9/15 7:59 AM:
-------------------------------------------------------------

This is a critical bug for us, because it effectively prevents meaningful Camel testing in WildFly.


was (Author: thomas.diesler):
This is a critical bug for us, because it effectively prevents meaningful Camel testing in WildFly. I see if I can provide a patch ...

> ARQ calls test methods with TCCL being set
> ------------------------------------------
>
>                 Key: ARQ-1913
>                 URL: https://issues.jboss.org/browse/ARQ-1913
>             Project: Arquillian
>          Issue Type: Bug
>    Affects Versions: 1.1.6.Final
>            Reporter: Thomas Diesler
>
> While integrating Camel in EAP I noticed that @BeforeClass, @Before and @Test methods are being called with the TCCL of the test deployment.
> Camel happens to rely on TCCL, which is of course questionable in a modular environment. As a result it uses the test deployment's CL for resource discovery. Tests pass in the context of ARQ, but would not in a normal usage scenario when TCCL is not set or set to something else.
> IMHO, ARQ should stay out of the business of setting TCCL. Ideally it would even reset the TCCL to null before calling test code. This would provide a portable known base line across various containers. 
> Related: https://github.com/wildfly-extras/wildfly-camel/issues/292



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the arquillian-issues mailing list