@Test public void shouldSetPortProperty() { H2 h2 = H2.builder().build(); assertThat(h2.getUrl()).matches("jdbc:h2:tcp: assertThat(h2.getAdditionalProperties().get("sonar.embeddedDatabase.port")).isNotEmpty(); }
public static H2Builder builder() { return new H2Builder(); }
H2 extends DatabaseClient { public static H2Builder builder() { return new H2Builder(); } }
H2 extends DatabaseClient { public static H2Builder builder() { return new H2Builder(); } private  H2(Builder builder); }
H2 extends DatabaseClient { public static H2Builder builder() { return new H2Builder(); } private  H2(Builder builder); @Override String[] getDropDdl(); @Override String getSelectConnectionIdsSql(); @Override String getKillConnectionSql(String connectionId); static H2Builder builder(); @Override String getDialect(); }
H2 extends DatabaseClient { public static H2Builder builder() { return new H2Builder(); } private  H2(Builder builder); @Override String[] getDropDdl(); @Override String getSelectConnectionIdsSql(); @Override String getKillConnectionSql(String connectionId); static H2Builder builder(); @Override String getDialect();  }