Search in sources :

Example 1 with MvnUniverse

use of org.jboss.galleon.universe.MvnUniverse in project galleon by wildfly.

the class UniverseTestCase method setup.

@BeforeClass
public static void setup() throws Exception {
    universeSpec_builtin = new UniverseSpec(MavenUniverseFactory.ID, TestConstants.GROUP_ID + ":" + UNIVERSE_NAME_BUILTIN);
    cli = new CliWrapper(universeSpec_builtin);
    MvnUniverse universe3 = MvnUniverse.getInstance(UNIVERSE_NAME_BUILTIN, cli.getSession().getMavenRepoManager());
    CliTestUtils.setupUniverse(universe3, cli, UNIVERSE_NAME_BUILTIN, Arrays.asList(PRODUCER3));
    MvnUniverse universe1 = MvnUniverse.getInstance(UNIVERSE_NAME, cli.getSession().getMavenRepoManager());
    universeSpec1 = CliTestUtils.setupUniverse(universe1, cli, UNIVERSE_NAME, Arrays.asList(PRODUCER1));
    MvnUniverse universe2 = MvnUniverse.getInstance(UNIVERSE_NAME2, cli.getSession().getMavenRepoManager());
    universeSpec2 = CliTestUtils.setupUniverse(universe2, cli, UNIVERSE_NAME2, Arrays.asList(PRODUCER2));
}
Also used : MvnUniverse(org.jboss.galleon.universe.MvnUniverse) UniverseSpec(org.jboss.galleon.universe.UniverseSpec) BeforeClass(org.junit.BeforeClass)

Example 2 with MvnUniverse

use of org.jboss.galleon.universe.MvnUniverse in project galleon by wildfly.

the class CliTestUtils method setupUniverse.

public static UniverseSpec setupUniverse(CliWrapper cli, String name, List<String> producers) throws ProvisioningException {
    MavenRepoManager mgr = cli.getSession().getMavenRepoManager();
    MvnUniverse universe = MvnUniverse.getInstance(name, mgr);
    return setupUniverse(universe, cli, name, producers);
}
Also used : MvnUniverse(org.jboss.galleon.universe.MvnUniverse) MavenRepoManager(org.jboss.galleon.universe.maven.repo.MavenRepoManager)

Example 3 with MvnUniverse

use of org.jboss.galleon.universe.MvnUniverse in project galleon by wildfly.

the class FindFeaturePacksTestCase method setup.

@BeforeClass
public static void setup() throws Exception {
    cli = new CliWrapper();
    MvnUniverse universe = MvnUniverse.getInstance(UNIVERSE_NAME, cli.getSession().getMavenRepoManager());
    universeSpec = CliTestUtils.setupUniverse(universe, cli, UNIVERSE_NAME, Arrays.asList(PRODUCER1, XPRODUCER));
}
Also used : MvnUniverse(org.jboss.galleon.universe.MvnUniverse) BeforeClass(org.junit.BeforeClass)

Example 4 with MvnUniverse

use of org.jboss.galleon.universe.MvnUniverse in project galleon by wildfly.

the class ListFeaturePacksTestCase method setup.

@BeforeClass
public static void setup() throws Exception {
    cli = new CliWrapper();
    MvnUniverse universe = MvnUniverse.getInstance(UNIVERSE_NAME, cli.getSession().getMavenRepoManager());
    universeSpec = CliTestUtils.setupUniverse(universe, cli, UNIVERSE_NAME, Arrays.asList(PRODUCER1), DEFAULT_FREQUENCY);
}
Also used : MvnUniverse(org.jboss.galleon.universe.MvnUniverse) BeforeClass(org.junit.BeforeClass)

Aggregations

MvnUniverse (org.jboss.galleon.universe.MvnUniverse)4 BeforeClass (org.junit.BeforeClass)3 UniverseSpec (org.jboss.galleon.universe.UniverseSpec)1 MavenRepoManager (org.jboss.galleon.universe.maven.repo.MavenRepoManager)1