This is an automated email from the ASF dual-hosted git repository.
menghaoran 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 4c2ec85 remove unuse mock
new fe8ccc8 Merge pull request #7179 from kimmking/fixUT
4c2ec85 is described below
commit 4c2ec85d97cfa3290b4458f6abf6f3e014b7e13b
Author: kimmking <[email protected]>
AuthorDate: Mon Aug 31 18:02:05 2020 +0800
remove unuse mock
---
.../proxy/governance/schema/ProxyGovernanceSchemaContextsTest.java | 3 ---
1 file changed, 3 deletions(-)
diff --git
a/shardingsphere-proxy/shardingsphere-proxy-governance/src/test/java/org/apache/shardingsphere/proxy/governance/schema/ProxyGovernanceSchemaContextsTest.java
b/shardingsphere-proxy/shardingsphere-proxy-governance/src/test/java/org/apache/shardingsphere/proxy/governance/schema/ProxyGovernanceSchemaContextsTest.java
index a85d7b2..64bec85 100644
---
a/shardingsphere-proxy/shardingsphere-proxy-governance/src/test/java/org/apache/shardingsphere/proxy/governance/schema/ProxyGovernanceSchemaContextsTest.java
+++
b/shardingsphere-proxy/shardingsphere-proxy-governance/src/test/java/org/apache/shardingsphere/proxy/governance/schema/ProxyGovernanceSchemaContextsTest.java
@@ -22,7 +22,6 @@ import
org.apache.shardingsphere.governance.core.common.event.auth.Authenticatio
import
org.apache.shardingsphere.governance.core.common.event.props.PropertiesChangedEvent;
import
org.apache.shardingsphere.governance.core.common.eventbus.GovernanceEventBus;
import org.apache.shardingsphere.governance.core.facade.GovernanceFacade;
-import org.apache.shardingsphere.governance.core.registry.RegistryCenter;
import
org.apache.shardingsphere.governance.core.registry.event.CircuitStateChangedEvent;
import org.apache.shardingsphere.infra.auth.Authentication;
import org.apache.shardingsphere.infra.auth.ProxyUser;
@@ -52,7 +51,6 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
@RunWith(MockitoJUnitRunner.class)
public final class ProxyGovernanceSchemaContextsTest {
@@ -80,7 +78,6 @@ public final class ProxyGovernanceSchemaContextsTest {
}
private ProxyGovernanceSchemaContexts getProxyGovernanceSchemaContexts() {
-
when(governanceFacade.getRegistryCenter()).thenReturn(mock(RegistryCenter.class));
ProxyGovernanceSchemaContexts result = new
ProxyGovernanceSchemaContexts(new StandardSchemaContexts(), governanceFacade);
SchemaContexts schemaContexts =
new StandardSchemaContexts(getSchemaContextMap(), new
Authentication(), new ConfigurationProperties(new Properties()), new
MySQLDatabaseType());