-
Notifications
You must be signed in to change notification settings - Fork 80
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
Migrate Jmockit VerificationsInOrder to Mockito #632
Merged
Merged
Changes from 3 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7be7eff
Migrate JMockit VerificationsInOrder to Mockito. Still seeing issue w…
shivanisky ce7021f
Revert uneeded changes, add correct Inorder statement
shivanisky 2b08db7
Revert unneeded changes, add correct Inorder statement, add test case…
shivanisky 87988b1
Refactor ArrayList to List
shivanisky 40e1061
Refactor
shivanisky 5717125
Refactor
shivanisky 856784c
Merge branch 'main' into jmockit-verifications-in-order-mockito
shivanisky 24917ad
Merge branch 'main' into jmockit-verifications-in-order-mockito
shivanisky a1818e4
Use correct template for multiple mocks. Refactor code to reduce dupl…
shivanisky b083472
Add support for multiple VerificationsInOrder blocks
shivanisky 8e407f1
Add support for multiple VerificationsInOrder blocks, reformat
shivanisky f4611cb
Isolate single issue to one test
shivanisky 05f3a6b
Reduce warnings
shivanisky 32447fd
Reduce duplicate code by centralising java parser using mockito core …
shivanisky bbcf88e
Fix failing test
shivanisky 50f6a3e
Merge branch 'main' into jmockit-verifications-in-order-mockito
timtebeek b12bb0b
Merge branch 'main' into jmockit-verifications-in-order-mockito
timtebeek ef25e9e
For now accept imperfect whitespace handling
timtebeek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
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.
Ah yes - this is one issue I'd like to get input on
inOrder(mock) works, but
InOrder inOrder = inOrder(mock) causes error even though I have the right compilation options and the right import. Hence I am not able to get all the tests passing (have disabled for now).
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.
Ah all good, that parse error went away - thanks, maybe all that was needed was to sync with main! Now just only one test failing with some strange formatting issue, just an empy new line between statements in test whenThreeBlocks g. https://ge.openrewrite.org/s/pyyay4x3zaeui/tests/task/:test/details/org.openrewrite.java.testing.jmockit.JMockitVerificationsInOrderToMockitoTest/whenThreeBlocks()?top-execution=1
Not due to having 3 blocks, but due to having a very short InOrder block of 2 lines.