@Test public void testInstallConfigWrong() { Assertions.assertThrows(IllegalArgumentException.class, () -> this.toskaLogic.install("Test App", "not a config")); Assertions.assertThrows(IllegalArgumentException.class, () -> this.toskaLogic.install("Test App", "other")); }
public void install(String appName, String configurationName) { List<Application> apps = getInstalledApps(); for (Application app : apps) { if (app.getDisplayName().equalsIgnoreCase(appName)) { install(app, configurationName); return; } } throw new NoSuchElementException("No app with this name is installed."); }
ToscaLogic { public void install(String appName, String configurationName) { List<Application> apps = getInstalledApps(); for (Application app : apps) { if (app.getDisplayName().equalsIgnoreCase(appName)) { install(app, configurationName); return; } } throw new NoSuchElementException("No app with this name is installed."); } }
ToscaLogic { public void install(String appName, String configurationName) { List<Application> apps = getInstalledApps(); for (Application app : apps) { if (app.getDisplayName().equalsIgnoreCase(appName)) { install(app, configurationName); return; } } throw new NoSuchElementException("No app with this name is installed."); }  }
ToscaLogic { public void install(String appName, String configurationName) { List<Application> apps = getInstalledApps(); for (Application app : apps) { if (app.getDisplayName().equalsIgnoreCase(appName)) { install(app, configurationName); return; } } throw new NoSuchElementException("No app with this name is installed."); }  List<ConfigurationEntry> getConfigurations(); void install(String appName, String configurationName); void install(Application app, String conigurationName); void install(Application app, Map<String, String> parameters); void waitForInstall(); List<Application> getInstalledApps(); }
ToscaLogic { public void install(String appName, String configurationName) { List<Application> apps = getInstalledApps(); for (Application app : apps) { if (app.getDisplayName().equalsIgnoreCase(appName)) { install(app, configurationName); return; } } throw new NoSuchElementException("No app with this name is installed."); }  List<ConfigurationEntry> getConfigurations(); void install(String appName, String configurationName); void install(Application app, String conigurationName); void install(Application app, Map<String, String> parameters); void waitForInstall(); List<Application> getInstalledApps();  }