Closed warnyul closed 6 months ago
The recent update enhances the JUnit5MavenDependencyResolver
by making its constructor private and allowing repository credentials and proxy host to be nullable. Additionally, the JUnit5RobolectricTestRunner
now uses a more generic DependencyResolver
instead of the specific MavenDependencyResolver
, streamlining dependency management.
Files | Change Summary |
---|---|
.../JUnit5MavenDependencyResolver.kt |
Made constructor private; parameters repositoryUserName , repositoryPassword , and proxyHost are now nullable. |
.../JUnit5RobolectricTestRunner.kt |
Replaced MavenDependencyResolver with DependencyResolver for dependency resolution. |
🐇 In code we trust, with lines so fine,
Changes made, the stars align.
Constructors hidden, resolvers anew,
Dependencies managed, our code flew.
With every commit, we grow and climb,
To heights of logic, pure and prime. 🌟
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?
File | Coverage [85.71%] | :white_check_mark: |
---|---|---|
robolectric-extension/src/main/kotlin/tech/apter/junit/jupiter/robolectric/internal/JUnit5MavenDependencyResolver.kt | 100.00% | :white_check_mark: |
robolectric-extension/src/main/kotlin/tech/apter/junit/jupiter/robolectric/internal/JUnit5RobolectricTestRunner.kt | 75.00% | :white_check_mark: |
Total Project Coverage | 69.44% | :white_check_mark: |
---|
File | Coverage [94.32%] | :white_check_mark: |
---|---|---|
robolectric-extension/src/main/kotlin/tech/apter/junit/jupiter/robolectric/internal/JUnit5MavenDependencyResolver.kt | 90.70% | :white_check_mark: |
robolectric-extension/src/main/kotlin/tech/apter/junit/jupiter/robolectric/internal/JUnit5RobolectricTestRunner.kt | 97.78% | :white_check_mark: |
Total Project Coverage | 91.14% | :white_check_mark: |
---|
Summary by CodeRabbit
Refactor
JUnit5RobolectricTestRunner
to use a more genericDependencyResolver
.Chores
JUnit5MavenDependencyResolver
class to have a private constructor and support nullable parameters for repository credentials and proxy settings.