{
VirtualFile file = getVirtualFile("/structure/explicit", "comparator.jar");
VFSDeploymentContext deployment = new AbstractVFSDeploymentContext(file, "");
deployment.setMetaDataPath(Collections.singletonList("META-INF"));
VFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(deployment);
Deployer deployer = new StructureOMFDeployer();
deployer.deploy(unit);
try
{
StructureMetaData metaData = unit.getAttachment(StructureMetaData.class);
assertNotNull(metaData);
assertComparator(metaData, "", "org.jboss.test.deployment.test.SomeDeploymentComparatorTop");
assertComparator(metaData, "sub.jar", "org.jboss.test.deployment.test.SomeDeploymentComparatorSub");
assertComparator(metaData, "x.war", "org.jboss.test.deployment.test.SomeDeploymentComparatorX");
}
finally
{
deployer.undeploy(unit);
}
}