public void testInstallPlugin() throws Exception { project = ensureProject("bork"); BasePluginData data = new BasePluginData(); data.setName("plugThat"); data.setVersion("1.2.3"); PluginVersion pluginVersion = new PluginVersion(data); GrailsCommand cmd = GrailsCommandFactory.installPlugin(project, pluginVersion); assertEquals("install-plugin --non-interactive plugThat 1.2.3", cmd.getCommand()); }
public void testInstallPlugin2() throws Exception { project = ensureProject("bork"); GrailsCommand cmd = GrailsCommandFactory.installPlugin(project, "plugger"); assertEquals("install-plugin --non-interactive plugger", cmd.getCommand()); }