Search in sources :

Example 1 with ModifiableModuleLibraryEntry

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);
}
Also used : ModifiableModuleLibraryEntry(com.intellij.lang.javascript.flex.projectStructure.model.ModifiableModuleLibraryEntry) ModifiableFlexBuildConfiguration(com.intellij.lang.javascript.flex.projectStructure.model.ModifiableFlexBuildConfiguration)

Aggregations

ModifiableFlexBuildConfiguration (com.intellij.lang.javascript.flex.projectStructure.model.ModifiableFlexBuildConfiguration)1 ModifiableModuleLibraryEntry (com.intellij.lang.javascript.flex.projectStructure.model.ModifiableModuleLibraryEntry)1