This is an automated email from the ASF dual-hosted git repository.
wuweijie 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 0df6dec Revise #10778 for code format (#10779)
0df6dec is described below
commit 0df6decd38dc59d570e1011647c96621e14fb41b
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Jun 12 13:14:26 2021 +0800
Revise #10778 for code format (#10779)
---
.../checker/DatabaseDiscoveryRuleConfigurationCheckerTest.java | 8 +++-----
.../rule/checker/ShadowRuleConfigurationCheckerTest.java | 10 +++-------
2 files changed, 6 insertions(+), 12 deletions(-)
diff --git
a/shardingsphere-features/shardingsphere-db-discovery/shardingsphere-db-discovery-core/src/test/java/org/apache/shardingsphere/dbdiscovery/rule/checker/DatabaseDiscoveryRuleConfigurationCheckerTest.java
b/shardingsphere-features/shardingsphere-db-discovery/shardingsphere-db-discovery-core/src/test/java/org/apache/shardingsphere/dbdiscovery/rule/checker/DatabaseDiscoveryRuleConfigurationCheckerTest.java
index 0e87f5b..69c6885 100644
---
a/shardingsphere-features/shardingsphere-db-discovery/shardingsphere-db-discovery-core/src/test/java/org/apache/shardingsphere/dbdiscovery/rule/checker/DatabaseDiscoveryRuleConfigurationCheckerTest.java
+++
b/shardingsphere-features/shardingsphere-db-discovery/shardingsphere-db-discovery-core/src/test/java/org/apache/shardingsphere/dbdiscovery/rule/checker/DatabaseDiscoveryRuleConfigurationCheckerTest.java
@@ -32,14 +32,12 @@ import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
-/**
- * Database discovery rule configuration checker test.
- */
public final class DatabaseDiscoveryRuleConfigurationCheckerTest {
+
static {
ShardingSphereServiceLoader.register(RuleConfigurationChecker.class);
}
-
+
@Test
public void assertCheckPass() {
DatabaseDiscoveryRuleConfiguration ruleConfig =
mock(DatabaseDiscoveryRuleConfiguration.class);
@@ -51,7 +49,7 @@ public final class
DatabaseDiscoveryRuleConfigurationCheckerTest {
assertThat(checker,
instanceOf(DatabaseDiscoveryRuleConfigurationChecker.class));
checker.check("test", ruleConfig);
}
-
+
@Test(expected = IllegalStateException.class)
public void assertCheckNoPass() {
DatabaseDiscoveryRuleConfiguration ruleConfig =
mock(DatabaseDiscoveryRuleConfiguration.class);
diff --git
a/shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-core/src/test/java/org/apache/shardingsphere/shadow/rule/checker/ShadowRuleConfigurationCheckerTest.java
b/shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-core/src/test/java/org/apache/shardingsphere/shadow/rule/checker/ShadowRuleConfigurationCheckerTest.java
index 9e43b5a..5667cbe 100644
---
a/shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-core/src/test/java/org/apache/shardingsphere/shadow/rule/checker/ShadowRuleConfigurationCheckerTest.java
+++
b/shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-core/src/test/java/org/apache/shardingsphere/shadow/rule/checker/ShadowRuleConfigurationCheckerTest.java
@@ -31,15 +31,12 @@ import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
-/**
- * Shadow rule configuration checker test.
- */
public final class ShadowRuleConfigurationCheckerTest {
-
+
static {
ShardingSphereServiceLoader.register(RuleConfigurationChecker.class);
}
-
+
@Test
public void assertCheckPass() {
ShadowRuleConfiguration ruleConfig =
mock(ShadowRuleConfiguration.class);
@@ -51,7 +48,7 @@ public final class ShadowRuleConfigurationCheckerTest {
assertThat(checker, instanceOf(ShadowRuleConfigurationChecker.class));
checker.check("test", ruleConfig);
}
-
+
@Test(expected = IllegalStateException.class)
public void assertCheckNoPass() {
ShadowRuleConfiguration ruleConfig =
mock(ShadowRuleConfiguration.class);
@@ -63,5 +60,4 @@ public final class ShadowRuleConfigurationCheckerTest {
assertThat(checker, instanceOf(ShadowRuleConfigurationChecker.class));
checker.check("test", ruleConfig);
}
-
}