@@ -0,0 +1,1617 @@
+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 SQLServerDataSourceMetaDataTest %7B%0A    @Test%0A    public void assertGetALLProperties() %7B%0A        SQLServerDataSourceMetaData actual = new SQLServerDataSourceMetaData(%22jdbc:microsoft:sqlserver://127.0.0.1:3306;DatabaseName=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        SQLServerDataSourceMetaData actual = new SQLServerDataSourceMetaData(%22jdbc:microsoft:sqlserver://127.0.0.1;DatabaseName=ds_0%22);%0A        assertThat(actual.getHostName(), is(%22127.0.0.1%22));%0A        assertThat(actual.getPort(), is(1433));%0A        assertThat(actual.getSchemeName(), is(%22ds_0%22));%0A    %7D%0A    %0A    @Test(expected = ShardingException.class)%0A    public void assertGetALLPropertiesFailure() %7B%0A        new SQLServerDataSourceMetaData(%22jdbc:postgresql:xxxxxxxx%22);%0A    %7D%0A    %0A    @Test%0A    public void assertIsInSameDatabaseInstance() %7B%0A        SQLServerDataSourceMetaData target = new SQLServerDataSourceMetaData(%22jdbc:microsoft:sqlserver://127.0.0.1;DatabaseName=ds_0%22);%0A        SQLServerDataSourceMetaData actual = new SQLServerDataSourceMetaData(%22jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=ds_0%22);%0A        assertThat(actual.isInSameDatabaseInstance(target), is(true));%0A    %7D%0A%7D

ADD SQLServerDataSourceMetaData