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?
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/Testable
I 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?
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.