Search in sources :

Example 11 with ProvisionedState

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());
}
Also used : ProvisionedState(org.jboss.galleon.state.ProvisionedState)

Aggregations

ProvisionedState (org.jboss.galleon.state.ProvisionedState)11 Test (org.junit.Test)9 Path (java.nio.file.Path)8 FeaturePackLocation (org.jboss.galleon.universe.FeaturePackLocation)4 ResolvedSpecId (org.jboss.galleon.runtime.ResolvedSpecId)3 Collection (java.util.Collection)2 Set (java.util.Set)2 ConfigId (org.jboss.galleon.config.ConfigId)2 ProvisionedFeature (org.jboss.galleon.state.ProvisionedFeature)2 CommandException (org.aesh.command.CommandException)1 ProvisioningException (org.jboss.galleon.ProvisioningException)1 ProvisionedConfig (org.jboss.galleon.state.ProvisionedConfig)1 FPID (org.jboss.galleon.universe.FeaturePackLocation.FPID)1