@@ -0,0 +1,1544 @@
+package io.shardingsphere.core.metadata.datasource.dialect;%0A%0Aimport io.shardingsphere.core.exception.ShardingException;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Apublic class PostgreSQLDataSourceMetaDataTest %7B%0A    @Test%0A    public void assertGetALLProperties() %7B%0A        PostgreSQLDataSourceMetaData actual = new PostgreSQLDataSourceMetaData(%22jdbc:postgresql://127.0.0.1:3306/ds_0%22);%0A        assertThat(actual.getHostName(), is(%22127.0.0.1%22));%0A        assertThat(actual.getPort(), is(3306));%0A        assertThat(actual.getSchemeName(), is(%22ds_0%22));%0A    %7D%0A    %0A    @Test%0A    public void assertGetALLPropertiesWithDefaultPort() %7B%0A        PostgreSQLDataSourceMetaData actual = new PostgreSQLDataSourceMetaData(%22jdbc:postgresql://127.0.0.1/ds_0%22);%0A        assertThat(actual.getHostName(), is(%22127.0.0.1%22));%0A        assertThat(actual.getPort(), is(5432));%0A        assertThat(actual.getSchemeName(), is(%22ds_0%22));%0A    %7D%0A    %0A    @Test(expected = ShardingException.class)%0A    public void assertGetALLPropertiesFailure() %7B%0A        new PostgreSQLDataSourceMetaData(%22jdbc:postgresql:xxxxxxxx%22);%0A    %7D%0A    %0A    @Test%0A    public void assertIsInSameDatabaseInstance() %7B%0A        PostgreSQLDataSourceMetaData target = new PostgreSQLDataSourceMetaData(%22jdbc:postgresql://127.0.0.1/ds_0%22);%0A        PostgreSQLDataSourceMetaData actual = new PostgreSQLDataSourceMetaData(%22jdbc:postgresql://127.0.0.1:5432/ds_0%22);%0A        assertThat(actual.isInSameDatabaseInstance(target), is(true));%0A    %7D%0A    %0A%7D

add PostgreSQLDataSourceMetaDataTest