@Test public void testBuilder() { MySql mysql = MySql.builder() .setUrl("jdbc:mysql: .setRootUrl("jdbc:mysql: .setDropAndCreate(false) .setRootLogin("hello").setRootPassword("world") .build(); assertThat(mysql.getDialect()).isEqualTo("mysql"); assertThat(mysql.getDriverClassName()).isEqualTo("com.mysql.jdbc.Driver"); assertThat(mysql.getUrl()).isEqualTo("jdbc:mysql: assertThat(mysql.getLogin()).isEqualTo("sonar"); assertThat(mysql.getPassword()).isEqualTo("sonar"); assertThat(mysql.isDropAndCreate()).isEqualTo(false); assertThat(mysql.getRootUrl()).isEqualTo("jdbc:mysql: assertThat(mysql.getRootLogin()).isEqualTo("hello"); assertThat(mysql.getRootPassword()).isEqualTo("world"); }
public static MySqlBuilder builder() { return new MySqlBuilder(); }
MySql extends DatabaseClient { public static MySqlBuilder builder() { return new MySqlBuilder(); } }
MySql extends DatabaseClient { public static MySqlBuilder builder() { return new MySqlBuilder(); } private  MySql(Builder builder); }
MySql extends DatabaseClient { public static MySqlBuilder builder() { return new MySqlBuilder(); } private  MySql(Builder builder); static MySqlBuilder builder(); @Override String getDialect(); @Override String[] getDropDdl(); @Override String[] getCreateDdl(); @Override String getSelectConnectionIdsSql(); @Override String getKillConnectionSql(String processID); }
MySql extends DatabaseClient { public static MySqlBuilder builder() { return new MySqlBuilder(); } private  MySql(Builder builder); static MySqlBuilder builder(); @Override String getDialect(); @Override String[] getDropDdl(); @Override String[] getCreateDdl(); @Override String getSelectConnectionIdsSql(); @Override String getKillConnectionSql(String processID);  }