shankeerthan-kasilingam opened a new pull request #15203: URL: https://github.com/apache/shardingsphere/pull/15203
Fixes #14246. **Fixed** : 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 **Added internal dependencies to the subproject:** shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-dialect/shardingsphere-data-pipeline-mysql/pom.xml **Updated Mockito version to 3.4.2 :** shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-dialect/shardingsphere-data-pipeline-mysql/pom.xml For the above test cases, we have to mock **PipelineDataSourceConfigurationFactory**. Since **PipelineDataSourceConfigurationFactory**’s method is static, we have to use mockStatic. In Mockito 3.4.0, the same test cases will throw NotAMockException. It seems like a bug in Mockito 3.4.0 and they were fixed in 3.4.2. In local testing, any tests didn’t fail after changing the Mockito version from 3.4.0 to 3.4.2 [1]: https://github.com/mockito/mockito/pull/1968 [2]: https://github.com/mockito/mockito/issues/1967 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
