Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 public void testInstallPlugin2() throws Exception {
   project = ensureProject("bork");
   GrailsCommand cmd = GrailsCommandFactory.installPlugin(project, "plugger");
   assertEquals("install-plugin --non-interactive plugger", cmd.getCommand());
 }