PostgreSQLSQLBuilder extends AbstractSQLBuilder { @Override public String buildInsertSQL(final DataRecord dataRecord) { return super.buildInsertSQL(dataRecord) + buildConflictSQL(dataRecord); }  @Override String getLeftIdentifierQuoteString(); @Override String getRightIdentifierQuoteString(); @Override String buildInsertSQL(final DataRecord dataRecord);  }
@Test public void assertBuildInsertSQL() { String actual = new PostgreSQLSQLBuilder().buildInsertSQL(mockDataRecord()); assertThat(actual, is("INSERT INTO \"t_order\"(\"id\",\"name\") VALUES(?,?) ON CONFLICT (id) DO NOTHING")); }