use of org.jboss.galleon.universe.FeaturePackLocation in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testGacvFromString.
@Test
public void testGacvFromString() throws Exception {
final FeaturePackLocation parsedSrc = FeaturePackLocation.fromString("groupId:artifactId:classifier:version");
Assert.assertNotNull(parsedSrc);
Assert.assertEquals("maven", parsedSrc.getUniverse().getFactory());
Assert.assertNull(parsedSrc.getUniverse().getLocation());
Assert.assertEquals("groupId:artifactId:classifier:zip", parsedSrc.getProducerName());
Assert.assertNull(parsedSrc.getChannelName());
Assert.assertNull(parsedSrc.getFrequency());
Assert.assertEquals("version", parsedSrc.getBuild());
}
use of org.jboss.galleon.universe.FeaturePackLocation in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testLocationWithoutUniverseLocationFromString.
@Test
public void testLocationWithoutUniverseLocationFromString() throws Exception {
final FeaturePackLocation parsedSrc = FeaturePackLocation.fromString("producer@factory:channel/frequency#build");
Assert.assertNotNull(parsedSrc);
Assert.assertEquals("factory", parsedSrc.getUniverse().getFactory());
Assert.assertNull(parsedSrc.getUniverse().getLocation());
Assert.assertEquals("producer", parsedSrc.getProducerName());
Assert.assertEquals("channel", parsedSrc.getChannelName());
Assert.assertEquals("frequency", parsedSrc.getFrequency());
Assert.assertEquals("build", parsedSrc.getBuild());
}
use of org.jboss.galleon.universe.FeaturePackLocation in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testChannelWithoutUniverseLocationToString.
@Test
public void testChannelWithoutUniverseLocationToString() throws Exception {
final ChannelSpec channel = new FeaturePackLocation(new UniverseSpec("factory", null), "producer", "channel", "frequency", "build").getChannel();
Assert.assertEquals("producer@factory:channel", channel.toString());
}
use of org.jboss.galleon.universe.FeaturePackLocation in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testFeaturePackIdWithUniverseLocationFromString.
@Test
public void testFeaturePackIdWithUniverseLocationFromString() throws Exception {
final FeaturePackLocation parsedCoords = FeaturePackLocation.fromString("producer@factory(location):channel#build");
Assert.assertNotNull(parsedCoords);
Assert.assertEquals("factory", parsedCoords.getUniverse().getFactory());
Assert.assertEquals("location", parsedCoords.getUniverse().getLocation());
Assert.assertEquals("producer", parsedCoords.getProducerName());
Assert.assertEquals("channel", parsedCoords.getChannelName());
Assert.assertNull(parsedCoords.getFrequency());
Assert.assertEquals("build", parsedCoords.getBuild());
}
use of org.jboss.galleon.universe.FeaturePackLocation in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testGatvFromString.
@Test
public void testGatvFromString() throws Exception {
final FeaturePackLocation parsedSrc = FeaturePackLocation.fromString("groupId:artifactId::type:version");
Assert.assertNotNull(parsedSrc);
Assert.assertEquals("maven", parsedSrc.getUniverse().getFactory());
Assert.assertNull(parsedSrc.getUniverse().getLocation());
Assert.assertEquals("groupId:artifactId::type", parsedSrc.getProducerName());
Assert.assertNull(parsedSrc.getChannelName());
Assert.assertNull(parsedSrc.getFrequency());
Assert.assertEquals("version", parsedSrc.getBuild());
}
Aggregations