@Test public void testExecute() { final String[] args = {"config", "set", "name", "value"}; final OperationRegistry registry = OperationRegistry.getInstance(); final OperationParser parser = new OperationParser(registry); final CommandLineOperationParams params = parser.parse(GeoWaveTopLevelSection.class, args); final SetCommand setcommand = new SetCommand(); final String name = "name"; final String value = "value"; setcommand.setParameters(name, value); setcommand.prepare(params); setcommand.execute(params); final File f = (File) params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT); final Properties p = ConfigOptions.loadProperties(f); assertEquals(value, p.getProperty(name)); }
@Override public void execute(final OperationParams params) { isRestCall = false; computeResults(params); }
SetCommand extends ServiceEnabledCommand<Object> { @Override public void execute(final OperationParams params) { isRestCall = false; computeResults(params); } }
SetCommand extends ServiceEnabledCommand<Object> { @Override public void execute(final OperationParams params) { isRestCall = false; computeResults(params); }  }
SetCommand extends ServiceEnabledCommand<Object> { @Override public void execute(final OperationParams params) { isRestCall = false; computeResults(params); }  @Override Boolean successStatusIs200(); @Override void execute(final OperationParams params); @Override Object computeResults(final OperationParams params); List<String> getParameters(); void setParameters(final String key, final String value); }
SetCommand extends ServiceEnabledCommand<Object> { @Override public void execute(final OperationParams params) { isRestCall = false; computeResults(params); }  @Override Boolean successStatusIs200(); @Override void execute(final OperationParams params); @Override Object computeResults(final OperationParams params); List<String> getParameters(); void setParameters(final String key, final String value);  }