org.netbeans.modules.groovy.grails.api.GrailsEnvironment.PROD

Here are the examples of the java api org.netbeans.modules.groovy.grails.api.GrailsEnvironment.PROD taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : GrailsSettingsTest.java
with Apache License 2.0
from apache

public void testEnvForProject() throws IOException {
    final GrailsSettings settings = GrailsSettings.getInstance();
    final Project project = new TestProject("test", FileUtil.toFileObject(FileUtil.normalizeFile(this.getWorkDir())));
    replacedertNull(settings.getEnvForProject(project));
    settings.setEnvForProject(project, GrailsEnvironment.PROD);
    replacedertEquals(GrailsEnvironment.PROD, settings.getEnvForProject(project));
    settings.setEnvForProject(project, GrailsEnvironment.DEV);
    replacedertEquals(GrailsEnvironment.DEV, settings.getEnvForProject(project));
}