use of org.jboss.galleon.spec.PackageSpec in project galleon by wildfly.
the class PackageXmlParserTestCase method readPassiveDependencies.
@Test
public void readPassiveDependencies() throws Exception {
PackageSpec found = validator.validateAndParse("xml/package/package-2.0-passive-dependencies.xml", null, null);
PackageSpec expected = PackageSpec.builder("package1").addPackageDep("dep1", PackageDependencySpec.REQUIRED).addPackageDep("dep2", PackageDependencySpec.OPTIONAL).addPackageDep("dep3", PackageDependencySpec.OPTIONAL).addPackageDep("dep4", PackageDependencySpec.PASSIVE).addPackageDep("dep5", PackageDependencySpec.PASSIVE).addPackageDep("dep6", PackageDependencySpec.REQUIRED).build();
Assert.assertEquals(expected, found);
}
use of org.jboss.galleon.spec.PackageSpec in project galleon by wildfly.
the class PackageXmlParserTestCase method readMissingDependencies.
@Test
public void readMissingDependencies() throws Exception {
final PackageSpec parsedPkg = validator.validateAndParse("xml/package/package-1.0-missing-dependencies.xml", null, null);
Assert.assertEquals(PackageSpec.forName("package1"), parsedPkg);
}
Aggregations