private void updateEnvironment(Map<String, Object> updatedEnv) { Map<String, String> asEnv = new MapToEnvironmentConverter(prettyPrinting).asEnv(updatedEnv); client.updateApplicationEnv(app.getName(), asEnv); }
@SuppressWarnings({ "unchecked", "rawtypes" }) @Test public void testUpdateEnv() { applicationEnvironmentUpdater.updateApplicationEnvironment(input.envPropertyKey, input.newKey, input.newValue); ArgumentCaptor<Map> captor = ArgumentCaptor.forClass(Map.class); Mockito.verify(client) .updateApplicationEnv(Mockito.eq(input.app.name), (Map<String, String>) captor.capture()); TestUtil.test(() -> captor.getValue(), expectation, getClass()); }
client.updateApplicationEnv(existingApplication.getName(), currentEnvironment); return existingApplication;
client.updateApplicationEnv(existingApplication.getName(), currentEnvironment); return existingApplication;
getStepLogger().debug("Updating env of application \"{0}\"", appName); getStepLogger().debug("Updated env: {0}", JsonUtil.toJson(env, true)); client.updateApplicationEnv(appName, env); userPropertiesChanged = true;
getStepLogger().debug("Updating env of application \"{0}\"", appName); getStepLogger().debug("Updated env: {0}", JsonUtil.toJson(env, true)); client.updateApplicationEnv(appName, env); userPropertiesChanged = true;
client.updateApplicationEnv(appName, env);
client.updateApplicationEnv(appName, env);