-
1. Re: Why is the @BeforeClass method not executed? - or - Is there a compiled and up-to-date information source for Arquilllian-JUnit integration?
bmajsak Oct 5, 2012 7:13 AM (in response to ksilin)BeforeClass is not executed in the container for the current version. There is however plan to make it happen for the next major version. I think it's been covered already in the similar thread.
What kind of DB things you want to test? Maybe Persistence Extension would help?
Cheers,
Bartosz
-
2. Re: Why is the @BeforeClass method not executed? - or - Is there a compiled and up-to-date information source for Arquilllian-JUnit integration?
ksilin Oct 5, 2012 10:07 AM (in response to bmajsak)Thanks Bartosz.
I was not aware of the discussion. I was preparing a shared dataset in the BeforeClass to be used by all Before methods. I have put it together with the rest of the Before method now - it's an overhead but not so substantial.
The Persistence Extension was the thing I was hoping for Unfortunately I have experienced strange issues (with the latest Alpha5) - using the
@UsingDataSet annotation, the tests sometimes refused to deploy with an error:
java.lang.NoClassDefFoundError: org/jboss/arquillian/container/test/api/TestableI could not reliably reproduce it ( working tests sometimes became broken after adding something harmless and unrelated , like a logging statement, or just adding another test class...) and have found no one with the same issue, so I never reported it, but Ii was far too often for production, so I had to work around it manually.
Is this a known issue?
Thanks again,
Konstantin
-
3. Re: Why is the @BeforeClass method not executed? - or - Is there a compiled and up-to-date information source for Arquilllian-JUnit integration?
bmajsak Oct 5, 2012 11:33 AM (in response to ksilin)Which version of Core are you using? I believe you should be using 1.0.2.Final - Testable was introduced there and Alpha5 is relying on it while packaging.
Cheers,
Bartosz