Draft
Conversation
- Update mockito from 5.12.0 to 5.20.0 - Update mockitoKotlin from 5.4.0 to 6.2.3 - Remove snapshot repository since we're using stable releases - Update CodeWhispererTestBase.kt to use mockito-kotlin 6.x API syntax This fixes failing CI tests caused by downgrading from 5.4.1-SNAPSHOT.
- Upgrade mockito-kotlin from 5.4.0 to 6.2.3
- Upgrade mockito-core from 5.12.0 to 5.20.0
- Remove snapshot repository from settings.gradle.kts
- Update deprecated API patterns in test files:
- CodeWhispererTestBase.kt: doAnswer{}.wheneverBlocking -> stub{onBlocking{} doAnswer{}}
- CodeWhispererServiceTest.kt: doCallRealMethod().wheneverBlocking -> stub{onBlocking{}.thenCallRealMethod()}
- SetupAuthenticationDialogTest.kt (both 242-252 and 253+ versions): stub{whenever(it.method()).thenThrow/thenReturn} -> stub{on{method()} doThrow/doReturn}
- Use mock with CALLS_REAL_METHODS instead of spy in CodeWhispererTestBase - This avoids invoking real suspend method during onBlocking stub setup - Remove redundant .thenCallRealMethod() stubs in CodeWhispererServiceTest
Contributor
Author
|
/retryBuilds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.