Skip to content

Commit

Permalink
Code format optimization and remove unnecessary mock. (#15233)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojinchao95 committed Feb 2, 2022
1 parent 8a50d17 commit 41a92c9
Showing 1 changed file with 0 additions and 6 deletions.
Expand Up @@ -26,7 +26,6 @@
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;
Expand All @@ -44,7 +43,6 @@
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

// FIX test cases
@RunWith(MockitoJUnitRunner.class)
public final class MySQLDataSourcePreparerTest {

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -116,6 +111,5 @@ public void assertThrowPrepareFailedException() throws SQLException {
MySQLDataSourcePreparer mySQLDataSourcePreparer = new MySQLDataSourcePreparer();
mySQLDataSourcePreparer.prepareTargetTables(prepareTargetTablesParameter);
}

}
}

0 comments on commit 41a92c9

Please sign in to comment.