use of org.jboss.galleon.state.ProvisionedState in project galleon by wildfly.
the class OrderOfProvisionedPackagesTestCase method testPm.
@Override
protected void testPm(ProvisioningManager pm) throws ProvisioningException {
super.testPm(pm);
final ProvisionedState state = pm.getProvisionedState();
final Iterator<String> packageNames = state.getFeaturePack(LegacyGalleon1Universe.newProducer("org.pm.test:fp-install")).getPackageNames().iterator();
Assert.assertTrue(packageNames.hasNext());
Assert.assertEquals("e", packageNames.next());
Assert.assertTrue(packageNames.hasNext());
Assert.assertEquals("a", packageNames.next());
Assert.assertTrue(packageNames.hasNext());
Assert.assertEquals("b", packageNames.next());
Assert.assertTrue(packageNames.hasNext());
Assert.assertEquals("d", packageNames.next());
Assert.assertTrue(packageNames.hasNext());
Assert.assertEquals("c", packageNames.next());
Assert.assertFalse(packageNames.hasNext());
}
Aggregations