-
1. Re: Arquillian not cleaning up after itself?
aslak Mar 7, 2012 5:28 PM (in response to rcd)Arquillian does use some ThreadLocals, but it should clean up after it self..
Looking at the TestNG code:
This code holds a ThreadLocal with the TestResult:
https://github.com/cbeust/testng/blob/master/src/main/java/org/testng/Reporter.java#L32
It's being set here https://github.com/cbeust/testng/blob/master/src/main/java/org/testng/internal/Invoker.java#L530
and set again here in the final block https://github.com/cbeust/testng/blob/master/src/main/java/org/testng/internal/Invoker.java#L584
Looking at the other uses of this method, it should probably be set to null in the final block. so this looks to me like a bug in TestNG.
I'll ping Cedric to confirm..
-
2. Re: Arquillian not cleaning up after itself?
cbeust Mar 7, 2012 6:20 PM (in response to aslak)1 of 1 people found this helpfulYup, this looks like the correct fix. I'm already setting it to null in another part of the code but forgot it here.
I just pushed a beta with the fix: http://testng.org/beta
-
3. Re: Arquillian not cleaning up after itself?
rcd Mar 8, 2012 10:15 AM (in response to cbeust)Cedric, do TestNG snapshots get published to any public Maven repositories?
-
4. Re: Arquillian not cleaning up after itself?
cbeust Mar 8, 2012 1:48 PM (in response to rcd)No, Maven Central doesn't allow SNAPSHOTS and it's usually a hassle to explain to people how to hook up their build to check the SNAPSHOT repositories :-)
You can, however, use the beta jar in your maven build with systemPath:
-
5. Re: Arquillian not cleaning up after itself?
rcd Mar 8, 2012 1:59 PM (in response to cbeust)Cedric Beust wrote:
it's usually a hassle to explain to people how to hook up their build to check the SNAPSHOT repositories :-)
Really? I'm a Maven n00b and it took me all of two minutes to figure out how to add the JBoss repo to my POMs... :-D
Thanks for the help, guys!