use of org.jboss.galleon.universe.UniverseSpec in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testProducerUniverseFactoryLocationFrequencyBuildFromString.
@Test
public void testProducerUniverseFactoryLocationFrequencyBuildFromString() throws Exception {
final FeaturePackLocation parsedSrc = FeaturePackLocation.fromString("producer@factory(location)/frequency#build");
Assert.assertNotNull(parsedSrc);
Assert.assertEquals(new UniverseSpec("factory", "location"), parsedSrc.getUniverse());
Assert.assertEquals("producer", parsedSrc.getProducerName());
Assert.assertNull(parsedSrc.getChannelName());
Assert.assertEquals("frequency", parsedSrc.getFrequency());
Assert.assertEquals("build", parsedSrc.getBuild());
}
use of org.jboss.galleon.universe.UniverseSpec in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testFeaturePackIdWithUniverseLocationToString.
@Test
public void testFeaturePackIdWithUniverseLocationToString() throws Exception {
final FeaturePackLocation.FPID fpid = new FeaturePackLocation(new UniverseSpec("factory", "location"), "producer", "channel", "frequency", "build").getFPID();
Assert.assertEquals("producer@factory(location):channel#build", fpid.toString());
}
use of org.jboss.galleon.universe.UniverseSpec in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testMavenProducerWithUniverseToString.
@Test
public void testMavenProducerWithUniverseToString() throws Exception {
final ProducerSpec producer = new FeaturePackLocation(new UniverseSpec("maven", "org.jboss.universe:jboss-universe:1.0.0.Final"), "producer", "channel", "frequency", "build").getProducer();
Assert.assertEquals("producer@maven(org.jboss.universe:jboss-universe:1.0.0.Final)", producer.toString());
}
use of org.jboss.galleon.universe.UniverseSpec in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testChannelWithUniverseLocationAndFrequencyToString.
@Test
public void testChannelWithUniverseLocationAndFrequencyToString() throws Exception {
final FeaturePackLocation.ChannelSpec channel = new FeaturePackLocation(new UniverseSpec("factory", "location"), "producer", "channel", "frequency", "build").getChannel();
Assert.assertEquals("producer@factory(location):channel", channel.toString());
}
Aggregations