Open Just-CJ opened 2 months ago
The pull request encompasses several updates primarily focused on dependency management within various pom.xml
files and adjustments to Java test classes. Key changes include upgrading the mockito-core
dependency from version 1.10.19
to 4.3.0
, removing specific version declarations for mockito-core
in multiple plugin projects, and refactoring import statements and class declarations to align with the updated package structure and functionality.
File | Change Summary |
---|---|
pom.xml |
Updated mockito-core version from 1.10.19 to 4.3.0 ; removed version declarations in plugins. |
BaseTest.java |
Updated import from org.mockito.runners.MockitoJUnitRunner to org.mockito.junit.MockitoJUnitRunner . |
CountBenchmark.java |
Removed @Test annotation, indicating a shift to JMH for benchmarking. |
tracer-sofa-boot-starter/pom.xml |
Added sofa-boot dependency; modified de.flapdoodle.embed.mongo version; marked embedmongo-spring as optional; added junit dependency for testing. |
SofaTracerConfigurationListener.java |
Refactored method to use SofaBootEnvUtils for environment checks. |
AbstractTestBase.java |
Updated import for SofaBootstrapRunListener to new package. |
AbstractTestCloudBase.java |
Changed from concrete to abstract class; updated import for SofaBootstrapRunListener . |
ConfigurationHolderListener.java |
Renamed import from SOFABootEnvUtils to SofaBootEnvUtils . |
SpringBootWebApplication.java |
Excluded EmbeddedMongoAutoConfiguration from @SpringBootApplication . |
ConfigurationTest.java |
Removed imports for Spring testing framework components. |
tracer-test/core-test/pom.xml |
Removed version specification for mockito-core dependency, changing from 2.3.0 to unspecified. |
pom.xml
file, specifically updating the version of the mockito-core
dependency.tracer-all-parent
artifact in the pom.xml
, indicating a related effort in managing dependencies.tracer-all-parent
artifact in the pom.xml
.tracer-all-parent
artifact, indicating a related change in dependency management within the pom.xml
.pom.xml
file for the tracer-all-parent
artifact, relevant to the main PR's focus on dependency updates.🐇 In the garden of code, changes bloom bright,
Mockito's new version, a delightful sight.
Dependencies dance, old paths now align,
Spring's gentle whispers, in tests they entwine.
With each little tweak, our code takes a leap,
Hopping towards clarity, in logic we keep! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Motivation:
修复单元测试,主要修复tracer-sofa-boot-starter模块下单元测试不能正常运行的问题。
Modification:
项目正常依赖的sofaboot版本中,SofaBootstrapRunListener已经迁移到了com.alipay.sofa:sofa-boot中,不再需要依赖infra-sofa-boot-starter,重新将该依赖补回即可。
Result:
Fixes #.
If there is no issue then describe the changes introduced by this PR.
Summary by CodeRabbit
New Features
sofa-boot
, enhancing project functionality.junit
dependency to improve testing capabilities.Bug Fixes
mockito-core
dependency to version4.3.0
, improving testing performance and reliability.mockito-core
in several plugins, allowing for the use of the latest version.Refactor
AbstractTestCloudBase
from a concrete to an abstract class to better serve as a base for other classes.Chores