SQL92DatabaseType implements DatabaseType { @Override public SQL92DataSourceMetaData getDataSourceMetaData(final String url, final String username) { return new SQL92DataSourceMetaData(url); }  @Override String getName(); @Override Collection<String> getJdbcUrlPrefixes(); @Override SQL92DataSourceMetaData getDataSourceMetaData(final String url, final String username);  }
@Test public void assertGetDataSourceMetaData() { assertThat(new SQL92DatabaseType().getDataSourceMetaData("jdbc:h2:mem:primary_ds_0", "sa"), instanceOf(SQL92DataSourceMetaData.class)); assertThat(new SQL92DatabaseType().getDataSourceMetaData("jdbc:mariadb: assertThat(new SQL92DatabaseType().getDataSourceMetaData("jdbc:mysql: assertThat(new SQL92DatabaseType().getDataSourceMetaData("jdbc:postgresql: assertThat(new SQL92DatabaseType().getDataSourceMetaData("jdbc:oracle:oci:@127.0.0.1/demo_ds_0", "scott"), instanceOf(SQL92DataSourceMetaData.class)); assertThat(new SQL92DatabaseType().getDataSourceMetaData("jdbc:microsoft:sqlserver: }