This is an automated email from the ASF dual-hosted git repository.

totalo 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 41a92c9  Code format optimization and remove unnecessary mock. (#15233)
41a92c9 is described below

commit 41a92c94f061fdfec0dba2081cdd3906ed8af08e
Author: zhaojinchao <[email protected]>
AuthorDate: Wed Feb 2 10:46:55 2022 +0800

    Code format optimization and remove unnecessary mock. (#15233)
---
 .../mysql/prepare/datasource/MySQLDataSourcePreparerTest.java       | 6 ------
 1 file changed, 6 deletions(-)

diff --git 
a/shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-dialect/shardingsphere-data-pipeline-mysql/src/test/java/org/apache/shardingsphere/data/pipeline/mysql/prepare/datasource/MySQLDataSourcePreparerTest.java
 
b/shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-dialect/shardingsphere-data-pipeline-mysql/src/test/java/org/apache/shardingsphere/data/pipeline/mysql/prepare/datasource/MySQLDataSourcePreparerTest.java
index bfbc190..ea380a3 100644
--- 
a/shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-dialect/shardingsphere-data-pipeline-mysql/src/test/java/org/apache/shardingsphere/data/pipeline/mysql/prepare/datasource/MySQLDataSourcePreparerTest.java
+++ 
b/shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-dialect/shardingsphere-data-pipeline-mysql/src/test/java/org/apache/shardingsphere/data/pipeline/mysql/prepare/datasource/MySQLDataSourcePreparerTest.java
@@ -26,7 +26,6 @@ import 
org.apache.shardingsphere.data.pipeline.api.datasource.config.yaml.YamlPi
 import 
org.apache.shardingsphere.data.pipeline.core.datasource.PipelineDataSourceManager;
 import 
org.apache.shardingsphere.data.pipeline.core.exception.PipelineJobPrepareFailedException;
 import 
org.apache.shardingsphere.data.pipeline.core.prepare.datasource.PrepareTargetTablesParameter;
-import 
org.apache.shardingsphere.driver.config.datasource.ShardingSpherePipelineDataSourceCreator;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -44,7 +43,6 @@ import static org.mockito.Mockito.mockStatic;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
-// FIX test cases
 @RunWith(MockitoJUnitRunner.class)
 public final class MySQLDataSourcePreparerTest {
     
@@ -72,9 +70,6 @@ public final class MySQLDataSourcePreparerTest {
     @Mock
     private PipelineDataSourceWrapper targetDataSourceWrapper;
     
-    @Mock
-    private ShardingSpherePipelineDataSourceCreator 
mockShardingSpherePipelineDataSourceCreator;
-    
     @Before
     public void setUp() throws SQLException {
         PipelineDataSourceManager mockPipelineDataSourceManager = 
mock(PipelineDataSourceManager.class);
@@ -116,6 +111,5 @@ public final class MySQLDataSourcePreparerTest {
             MySQLDataSourcePreparer mySQLDataSourcePreparer = new 
MySQLDataSourcePreparer();
             
mySQLDataSourcePreparer.prepareTargetTables(prepareTargetTablesParameter);
         }
-       
     }
 }

Reply via email to