Arrays.asList(dd.getDependencyConfigurations("conf1")));
}
public void testImportConfigurations2() throws Exception {
// import configurations and add another one
ModuleDescriptor md = XmlModuleDescriptorParser.getInstance().parseDescriptor(settings,
getClass().getResource("test-configurations-import2.xml"), true);
assertNotNull(md);
// should have imported configurations and added the one defined in the file itself
assertNotNull(md.getConfigurations());
assertEquals(
Arrays.asList(new Configuration[] {
new Configuration("conf1", Visibility.PUBLIC, "", new String[0], true, null),
new Configuration("conf2", Visibility.PRIVATE, "", new String[0], true, null),
new Configuration("conf3", Visibility.PUBLIC, "", new String[0], true, null)}),
Arrays.asList(md.getConfigurations()));
DependencyDescriptor[] dependencies = md.getDependencies();
assertNotNull(dependencies);
assertEquals(2, dependencies.length);
// no conf def => defaults to defaultConf: *->*
DependencyDescriptor dd = getDependency(dependencies, "mymodule1");