do Arquillian test has a way to run cli command for EAP before the tests begins ? (cli command to create datasource or jms queue )
Is there a way to do it ? can someone point me to example or API ?
There is no such thing in Arquillian per se, but you can use hooks to your testing framework of choice (or a build tool of choice) to achieve that.
For example in case of EAP you probably can use JBoss Maven Plugin. If you want to run it from the test code itself then maybe Runtime.exec() would be enough?
Retrieving data ...