Search in sources :

Example 1 with WebFrameworkVersion

use of com.intellij.javaee.web.framework.WebFrameworkVersion in project google-cloud-intellij by GoogleCloudPlatform.

the class AppEngineStandardSupportProviderTest method testAppEngineWithWeb_noManagedLibrariesSelected.

public void testAppEngineWithWeb_noManagedLibrariesSelected() {
    setupAppEngine(new AppEngineStandardLibraryPanel(false), null);
    selectFramework(WebFacet.ID);
    selectVersion(WebFrameworkType.getInstance(), new WebFrameworkVersion(WebAppVersion.WebAppVersion_2_5));
    addSupport();
    getFacet(AppEngineStandardFacetType.ID);
    assertFileExist("web/WEB-INF/web.xml");
    assertFileExist("web/WEB-INF/appengine-web.xml");
    final String moduleName = myModule.getName();
    Artifact artifact = ArtifactsTestUtil.findArtifact(myProject, moduleName + ":war exploded");
    ArtifactsTestUtil.assertLayout(artifact.getRootElement(), "<root>\n" + " javaee-resources:Web(" + moduleName + ")\n" + " WEB-INF/\n" + "  classes/\n" + "   module:" + moduleName + "\n");
    assertRunConfigurationCreated(artifact);
}
Also used : AppEngineStandardLibraryPanel(com.google.cloud.tools.intellij.appengine.facet.standard.AppEngineStandardLibraryPanel) WebFrameworkVersion(com.intellij.javaee.web.framework.WebFrameworkVersion) Artifact(com.intellij.packaging.artifacts.Artifact)

Aggregations

AppEngineStandardLibraryPanel (com.google.cloud.tools.intellij.appengine.facet.standard.AppEngineStandardLibraryPanel)1 WebFrameworkVersion (com.intellij.javaee.web.framework.WebFrameworkVersion)1 Artifact (com.intellij.packaging.artifacts.Artifact)1