@Test public void testPrepare() { final String[] args = {"explain"}; final OperationRegistry registry = OperationRegistry.getInstance(); final OperationParser parser = new OperationParser(registry); final CommandLineOperationParams params = parser.parse(GeoWaveTopLevelSection.class, args); final ExplainCommand expcommand = new ExplainCommand(); expcommand.prepare(params); assertEquals(false, params.isValidate()); assertEquals(true, params.isAllowUnknown()); }
@Override public boolean prepare(final OperationParams inputParams) { super.prepare(inputParams); final CommandLineOperationParams params = (CommandLineOperationParams) inputParams; params.setValidate(false); params.setAllowUnknown(true); return true; }
ExplainCommand extends DefaultOperation implements Command { @Override public boolean prepare(final OperationParams inputParams) { super.prepare(inputParams); final CommandLineOperationParams params = (CommandLineOperationParams) inputParams; params.setValidate(false); params.setAllowUnknown(true); return true; } }
ExplainCommand extends DefaultOperation implements Command { @Override public boolean prepare(final OperationParams inputParams) { super.prepare(inputParams); final CommandLineOperationParams params = (CommandLineOperationParams) inputParams; params.setValidate(false); params.setAllowUnknown(true); return true; }  }
ExplainCommand extends DefaultOperation implements Command { @Override public boolean prepare(final OperationParams inputParams) { super.prepare(inputParams); final CommandLineOperationParams params = (CommandLineOperationParams) inputParams; params.setValidate(false); params.setAllowUnknown(true); return true; }  @Override boolean prepare(final OperationParams inputParams); @Override void execute(final OperationParams inputParams); static StringBuilder explainCommander(final JCommander commander); @SuppressWarnings("unchecked") static StringBuilder explainMainParameter(final JCommander commander); }
ExplainCommand extends DefaultOperation implements Command { @Override public boolean prepare(final OperationParams inputParams) { super.prepare(inputParams); final CommandLineOperationParams params = (CommandLineOperationParams) inputParams; params.setValidate(false); params.setAllowUnknown(true); return true; }  @Override boolean prepare(final OperationParams inputParams); @Override void execute(final OperationParams inputParams); static StringBuilder explainCommander(final JCommander commander); @SuppressWarnings("unchecked") static StringBuilder explainMainParameter(final JCommander commander);  }