use of com.google.cloud.tools.intellij.appengine.facet.flexible.AppEngineFlexibleFacet in project google-cloud-intellij by GoogleCloudPlatform.
the class AppEngineFlexibleDeploymentEditorTest method flexibleConfig_javaAppYaml.
@Test
public void flexibleConfig_javaAppYaml() {
AppEngineFlexibleFacet facet = AppEngineFlexibleFacet.getFacetByModule(javaModule);
editor.getAppYamlCombobox().setSelectedItem(facet);
assertThat(editor.getDockerDirectoryPanel().isVisible()).isFalse();
assertThat(editor.getStagedArtifactNamePanel().isVisible()).isFalse();
assertThat(editor.getRuntimePanel().isVisible()).isTrue();
assertThat(editor.getRuntimePanel().getLabelText()).isEqualTo("java");
}
use of com.google.cloud.tools.intellij.appengine.facet.flexible.AppEngineFlexibleFacet in project google-cloud-intellij by GoogleCloudPlatform.
the class AppEngineFlexibleDeploymentEditorTest method serviceNameIsUpdated_whenAppYamlSelectionChanges.
@Test
public void serviceNameIsUpdated_whenAppYamlSelectionChanges() {
configuration.setModuleName(javaModule.getName());
editor.resetEditorFrom(configuration);
assertThat(editor.getCommonConfig().getServiceLabel().getText()).isEqualTo("javaService");
// Now update to custom service
AppEngineFlexibleFacet facet = AppEngineFlexibleFacet.getFacetByModule(customModule);
editor.getAppYamlCombobox().setSelectedItem(facet);
assertThat(editor.getCommonConfig().getServiceLabel().getText()).isEqualTo("customService");
}
use of com.google.cloud.tools.intellij.appengine.facet.flexible.AppEngineFlexibleFacet in project google-cloud-intellij by GoogleCloudPlatform.
the class AppEngineFlexibleDeploymentEditorTest method flexibleConfig_restoredFromPersistedConfiguration.
@Test
public void flexibleConfig_restoredFromPersistedConfiguration() {
// set the stored app.yaml to the java yaml
configuration.setModuleName(javaModule.getName());
editor.resetEditorFrom(configuration);
AppEngineFlexibleFacet javaModuleFacet = AppEngineFlexibleFacet.getFacetByModule(javaModule);
assertThat(editor.getAppYamlCombobox().getSelectedItem()).isEqualTo(javaModuleFacet);
// set the stored app.yaml to the custom yaml
configuration.setModuleName(customModule.getName());
editor.resetEditorFrom(configuration);
AppEngineFlexibleFacet customModuleFacet = AppEngineFlexibleFacet.getFacetByModule(customModule);
assertThat(editor.getAppYamlCombobox().getSelectedItem()).isEqualTo(customModuleFacet);
}
Aggregations