add support for javaee frameworks: tests fixed

This commit is contained in:
nik
2013-06-06 13:31:41 +02:00
committed by Serega Vasiliev
parent 9c2e798ffc
commit ab1b849016
@@ -4,7 +4,7 @@ import com.intellij.facet.Facet;
import com.intellij.facet.FacetManager;
import com.intellij.facet.FacetTypeId;
import com.intellij.facet.ui.FacetBasedFrameworkSupportProvider;
import com.intellij.framework.FrameworkType;
import com.intellij.framework.*;
import com.intellij.framework.addSupport.FrameworkSupportInModuleConfigurable;
import com.intellij.framework.addSupport.FrameworkSupportInModuleProvider;
import com.intellij.ide.util.newProjectWizard.FrameworkSupportNode;
@@ -112,6 +112,10 @@ public abstract class FrameworkSupportProviderTestCase extends IdeaTestCase {
return configurable;
}
protected void selectVersion(FrameworkType frameworkType, com.intellij.framework.FrameworkVersion version) {
myFrameworkSupportModel.setSelectedVersion(frameworkType.getId(), version);
}
@NotNull
protected <F extends Facet> F getFacet(FacetTypeId<F> id) {
final F facet = FacetManager.getInstance(myModule).getFacetByType(id);