@Test public void testInsertDeveloper() { long count = 0; String name = "dev@name.com"; executeSuccess(queries.developerInsertStatement(name)); assertEquals(++count, getDevelopersCount()); executeSuccess(queries.developerInsertStatement("another@dev.net")); assertEquals(++count, getDevelopersCount()); executeNothinhDone(queries.developerInsertStatement(name)); assertEquals(count, getDevelopersCount()); }
@Override public String developerInsertStatement(String developerName) { return "INSERT INTO developer (username) VALUES ($$" + escapeStringEntry(developerName) + "$$) ON CONFLICT DO NOTHING;"; }
JDBCDeveloperQueries extends JDBCQueriesHelper implements DeveloperQueries { @Override public String developerInsertStatement(String developerName) { return "INSERT INTO developer (username) VALUES ($$" + escapeStringEntry(developerName) + "$$) ON CONFLICT DO NOTHING;"; } }
JDBCDeveloperQueries extends JDBCQueriesHelper implements DeveloperQueries { @Override public String developerInsertStatement(String developerName) { return "INSERT INTO developer (username) VALUES ($$" + escapeStringEntry(developerName) + "$$) ON CONFLICT DO NOTHING;"; }  }
JDBCDeveloperQueries extends JDBCQueriesHelper implements DeveloperQueries { @Override public String developerInsertStatement(String developerName) { return "INSERT INTO developer (username) VALUES ($$" + escapeStringEntry(developerName) + "$$) ON CONFLICT DO NOTHING;"; }  @Override String developerInsertStatement(String developerName); @Override String projectDeveloperInsertStatement(int projectId, String developerName); @Override String idFromEmailQuery(String email); @Override String projectDeveloperQuery(int projectId, String email); }
JDBCDeveloperQueries extends JDBCQueriesHelper implements DeveloperQueries { @Override public String developerInsertStatement(String developerName) { return "INSERT INTO developer (username) VALUES ($$" + escapeStringEntry(developerName) + "$$) ON CONFLICT DO NOTHING;"; }  @Override String developerInsertStatement(String developerName); @Override String projectDeveloperInsertStatement(int projectId, String developerName); @Override String idFromEmailQuery(String email); @Override String projectDeveloperQuery(int projectId, String email);  }