use of com.intellij.lang.javascript.flex.projectStructure.model.ModifiableModuleLibraryEntry in project intellij-plugins by JetBrains.
the class FlexProjectConfigTest method testModuleLibrary2.
public void testModuleLibrary2() throws ConfigurationException {
assertEquals(1, FlexBuildConfigurationManager.getInstance(myModule).getBuildConfigurations().length);
final String libraryId = createModuleLibrary();
FlexTestUtils.modifyConfigs(myProject, configEditor -> {
ModifiableFlexBuildConfiguration[] configurations = configEditor.getConfigurations(myModule);
assertEquals(1, configurations.length);
ModifiableFlexBuildConfiguration c = configurations[0];
final ModifiableModuleLibraryEntry e = configEditor.createModuleLibraryEntry(c.getDependencies(), libraryId);
c.getDependencies().getModifiableEntries().add(e);
});
OrderEntry libraryEntry = findLibraryEntry(myModule, libraryId);
assertNotNull(libraryEntry);
}
Aggregations