public void testDevWarWithCustomEnv() throws Exception {
   project = ensureProject("bork");
   GrailsCommand cmd =
       GrailsCommandFactory.war(project, "somethingSpecial", new File("/tmp/crud123.war"));
   assertEquals("war /tmp/crud123.war", cmd.getCommand());
   assertEquals("somethingSpecial", cmd.getSystemProperties().get("grails.env"));
 }
 public void testDevWar() throws Exception {
   project = ensureProject("bork");
   GrailsCommand cmd = GrailsCommandFactory.war(project, "dev", null);
   assertEquals("dev war", cmd.getCommand());
 }
 public void testDevWarWithFile() throws Exception {
   project = ensureProject("bork");
   GrailsCommand cmd = GrailsCommandFactory.war(project, "dev", new File("/tmp/crud123.war"));
   assertEquals("dev war /tmp/crud123.war", cmd.getCommand());
 }
 public void testWarWithSpaces() throws Exception {
   project = ensureProject("bork");
   GrailsCommand cmd = GrailsCommandFactory.war(project, null, new File("/tmp/has space.war"));
   assertEquals("prod war " + QUOTE + "/tmp/has space.war" + QUOTE, cmd.getCommand());
 }