use of org.jboss.galleon.universe.FeaturePackLocation in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testCompleteLocationFromString.
@Test
public void testCompleteLocationFromString() throws Exception {
final FeaturePackLocation parsedSrc = FeaturePackLocation.fromString("producer@factory(location):channel/frequency#build");
Assert.assertNotNull(parsedSrc);
Assert.assertEquals("factory", parsedSrc.getUniverse().getFactory());
Assert.assertEquals("location", 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 testFeaturePackIdWithoutUniverseLocationToString.
@Test
public void testFeaturePackIdWithoutUniverseLocationToString() throws Exception {
final FeaturePackLocation.FPID fpid = new FeaturePackLocation(new UniverseSpec("factory", null), "producer", "channel", "frequency", "build").getFPID();
Assert.assertEquals("producer@factory:channel#build", fpid.toString());
}
use of org.jboss.galleon.universe.FeaturePackLocation in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testProducerUniverseFactoryLocationFrequencyFromString.
@Test
public void testProducerUniverseFactoryLocationFrequencyFromString() throws Exception {
final FeaturePackLocation parsedSrc = FeaturePackLocation.fromString("producer@factory(location)/frequency");
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.assertNull(parsedSrc.getBuild());
}
use of org.jboss.galleon.universe.FeaturePackLocation in project galleon by wildfly.
the class FeaturePackLocationStringTestCase method testFeaturePackIdWithoutUniverseLocationFromString.
@Test
public void testFeaturePackIdWithoutUniverseLocationFromString() throws Exception {
final FeaturePackLocation parsedCoords = FeaturePackLocation.fromString("producer@factory:channel#build");
Assert.assertNotNull(parsedCoords);
Assert.assertEquals("factory", parsedCoords.getUniverse().getFactory());
Assert.assertNull(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 testProducerFrequencyFromString.
@Test
public void testProducerFrequencyFromString() throws Exception {
final FeaturePackLocation parsedSrc = FeaturePackLocation.fromString("producer/frequency");
Assert.assertNotNull(parsedSrc);
Assert.assertNull(parsedSrc.getUniverse());
Assert.assertEquals("producer", parsedSrc.getProducerName());
Assert.assertNull(parsedSrc.getChannelName());
Assert.assertEquals("frequency", parsedSrc.getFrequency());
Assert.assertNull(null, parsedSrc.getBuild());
}
Aggregations