UseDefaultInsertColumnsToken extends SQLToken implements Attachable { @Override public String toString() { return columns.isEmpty() ? "" : String.format("(%s)", Joiner.on(", ").join(columns)); } UseDefaultInsertColumnsToken(final int startIndex, final List<String> columns); @Override String toString();  }
@Test public void assertToStringWithEmptyColumn() { assertThat(new UseDefaultInsertColumnsToken(0, Collections.emptyList()).toString(), is("")); }
@Test public void assertToStringWithColumns() { assertThat(new UseDefaultInsertColumnsToken(0, Arrays.asList("id", "name")).toString(), is("(id, name)")); }