defaultParentId.addDependency(new Artifact("org.apache.geronimo.tests", "test", "1", "car"), ImportType.ALL);
}
public void testBuildConfiguration() throws Exception {
ConfigurationData configurationData = null;
DeploymentContext context = null;
try {
EARConfigBuilder configBuilder = new EARConfigBuilder(defaultParentId,
transactionManagerAbstractNameQuery,
connectionTrackerAbstractNameQuery,
transactionalTimerAbstractNameQuery,
nonTransactionalTimerAbstractNameQuery,
corbaGBeanAbstractNameQuery,
null,
null,
ejbConfigBuilder,
webConfigBuilder,
connectorConfigBuilder,
activationSpecInfoLocator,
appClientConfigBuilder,
securityBuilder,
serviceBuilder,
naming);
Object plan = configBuilder.getDeploymentPlan(null, earFile, idBuilder);
context = configBuilder.buildConfiguration(false, configBuilder.getConfigurationID(plan, earFile, idBuilder), plan, earFile, Collections.singleton(configStore), artifactResolver, configStore);
configurationData = getConfigurationData(context);
} finally {
if (context != null) {
context.close();
}
if (configurationData != null) {
DeploymentUtil.recursiveDelete(configurationData.getConfigurationDir());
}
}