}
@Test
public void testResolveDependencyHierarchy() throws Exception
{
DependencyNode root = resolver
.resolveDependencyHierarchy(DependencyQueryBuilder
.create("org.jboss.forge:resources:jar:forge-addon:2.0.0.Alpha3"));
Assert.assertNotNull(root);
Assert.assertEquals(5, root.getChildren().size());
Assert.assertEquals("convert", root.getChildren().get(1).getDependency().getCoordinate().getArtifactId());
// TODO: ui-hints was changed to ui-spi since 2.0.0.Alpha5
Assert.assertEquals("ui-hints", root.getChildren().get(2).getDependency().getCoordinate().getArtifactId());
}