-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development
: Fix mockito warning
#10327
Conversation
@@ -80,7 +79,7 @@ modernizer { | |||
} | |||
|
|||
configurations { | |||
providedRuntime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
providedRuntime isn't used anywhere.
WalkthroughThe pull request modifies the Gradle build configuration to address dependency resolution errors. In Changes
Sequence Diagram(s)sequenceDiagram
participant Build as Build System
participant TestTask as Test Task Executor
participant MockitoAgent as Mockito Agent Config
Build->>Build: Apply dependencies (build.gradle)
Build->>Build: Apply test configuration (test.gradle) after dependencies
TestTask->>MockitoAgent: Retrieve Mockito agent classpath from `mockitoAgent`
TestTask->>TestTask: Add JVM argument "-javaagent:<mockitoAgent path>"
TestTask->>Build: Execute tests with enhanced Mockito support
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (4)
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Development
: Fix Mockito warningDevelopment
: Fix mockito warning
Checklist
General
Motivation and Context
Closes #10154
Mockito logs a warning at the beginning of the server test execution that it currently self-attaches to the inline-mock-maker and this might no longer work in the future.
Description
Followed the steps described here.
Had to change the order when test.gradle is applied in build.gradle to make the gradle build still compile.
Steps for Testing
Run the server tests locally or check the logs on Github/Bamboo.
Check that the server test logs no longer contain the following text
Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK
Code Review
Testserver States
You can manage test servers using Helios. Check environment statuses in the environment list. To deploy to a test server, go to the CI/CD page, find your PR or branch, and trigger the deployment.
Review Progress
Code Review
Manual Tests
Summary by CodeRabbit
Chores
Tests