This is an automated email from the ASF dual-hosted git repository.
kimmking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new c48f3b5 Format: format the code (#6714) (#7235)
c48f3b5 is described below
commit c48f3b5dab1ed9d2969fe32fcb6e47c1e8b5728b
Author: 孙念君 Sun Nianjun <[email protected]>
AuthorDate: Thu Sep 3 16:32:37 2020 +0800
Format: format the code (#6714) (#7235)
---
.../infra/metadata/datasource/DataSourceMetasTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/metadata/datasource/DataSourceMetasTest.java
b/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/metadata/datasource/DataSourceMetasTest.java
index 4060682..99bcd3d 100644
---
a/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/metadata/datasource/DataSourceMetasTest.java
+++
b/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/metadata/datasource/DataSourceMetasTest.java
@@ -27,12 +27,12 @@ import java.util.Map;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.assertNull;
public final class DataSourceMetasTest {
-
+
@Test
public void
assertGetAllInstanceDataSourceNamesForShardingRuleByDifferentDataSource() {
Map<String, DatabaseAccessConfiguration>
databaseAccessConfigurationMap = new HashMap<>(2, 1);
@@ -44,7 +44,7 @@ public final class DataSourceMetasTest {
assertThat(allInstanceDataSourceNames.size(), is(2));
assertTrue(allInstanceDataSourceNames.contains("ds_0") &&
allInstanceDataSourceNames.contains("ds_1"));
}
-
+
@Test
public void
assertGetAllInstanceDataSourceNamesForShardingRuleBySameDataSource() {
Map<String, DatabaseAccessConfiguration>
databaseAccessConfigurationMap = new HashMap<>(2, 1);
@@ -56,7 +56,7 @@ public final class DataSourceMetasTest {
assertThat(allInstanceDataSourceNames.size(), is(1));
assertTrue(allInstanceDataSourceNames.contains("ds_0") ||
allInstanceDataSourceNames.contains("ds_1"));
}
-
+
@Test
public void assertGetActualCatalogForShardingRule() {
Map<String, DatabaseAccessConfiguration>
databaseAccessConfigurationMap = new HashMap<>(2, 1);
@@ -65,7 +65,7 @@ public final class DataSourceMetasTest {
DataSourceMetas dataSourceMetas = new
DataSourceMetas(DatabaseTypes.getActualDatabaseType("MySQL"),
databaseAccessConfigurationMap);
assertThat(dataSourceMetas.getDataSourceMetaData("ds_0").getCatalog(),
is("db_0"));
}
-
+
@Test
public void assertGetActualSchemaNameForShardingRuleForMysql() {
Map<String, DatabaseAccessConfiguration>
databaseAccessConfigurationMap = new HashMap<>(2, 1);