// no, initialization has been attempted before, refuse to do anything else
if(lastCreatedRunner.get() != null)
{
throw new RuntimeException("Arquillian has previously been attempted initialized, but failed. See previous exceptions for cause.");
}
TestRunnerAdaptor adaptor = DeployableTestBuilder.build();
try
{
// don't set it if beforeSuite fails
adaptor.beforeSuite();
deployableTest.set(adaptor);
}
catch (Exception e)
{
throw new InitializationError(Arrays.asList((Throwable)e));