@Test public void convertKeyValueOption() throws TerraformException { String format = "-lock-timeout="; String value = "10s"; Assert.assertEquals(formatter.convert(format, value), "-lock-timeout=10s "); }
@Override public String convert(String format, Object value) { if (format.contains("=")) { return String.format("%s%s ", format, value); } else if (format.equals("%s")) { return String.format(format + " ", value); } else { return String.format("%s ", format); } }
DefaultOptionFormatter implements TfOptionFormatter { @Override public String convert(String format, Object value) { if (format.contains("=")) { return String.format("%s%s ", format, value); } else if (format.equals("%s")) { return String.format(format + " ", value); } else { return String.format("%s ", format); } } }
DefaultOptionFormatter implements TfOptionFormatter { @Override public String convert(String format, Object value) { if (format.contains("=")) { return String.format("%s%s ", format, value); } else if (format.equals("%s")) { return String.format(format + " ", value); } else { return String.format("%s ", format); } }  }
DefaultOptionFormatter implements TfOptionFormatter { @Override public String convert(String format, Object value) { if (format.contains("=")) { return String.format("%s%s ", format, value); } else if (format.equals("%s")) { return String.format(format + " ", value); } else { return String.format("%s ", format); } }  @Override String convert(String format, Object value); }
DefaultOptionFormatter implements TfOptionFormatter { @Override public String convert(String format, Object value) { if (format.contains("=")) { return String.format("%s%s ", format, value); } else if (format.equals("%s")) { return String.format(format + " ", value); } else { return String.format("%s ", format); } }  @Override String convert(String format, Object value);  }