CATROID-1635 Migrate Powermock tests: Mockito Inline (Static/Final Mocking)#5163
Open
hannesweilharter wants to merge 32 commits intoCatrobat:developfrom
Open
CATROID-1635 Migrate Powermock tests: Mockito Inline (Static/Final Mocking)#5163hannesweilharter wants to merge 32 commits intoCatrobat:developfrom
hannesweilharter wants to merge 32 commits intoCatrobat:developfrom
Conversation
…ify ClassDiscoverer.getAllSubClassesOf function
8057b84 to
c6cf3ba
Compare
|
Member
|
@hannesweilharter Is this PR ready for review? |
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.



Migrate testcases from
PowermockitotoMockito, specifically focusing on replacing static/final mocking capabilities with Mockito's inline mocking features.@RunWith(PowerMockRunner.classwith@RunWith(MockitoJUnitRunner.class)PowerMockito.mockStatic(ClassName.class)toMockito.mockStatic(ClassName.class)MockedStatic<ClassName>field declarationsPowerMockito.whenNew(ClassName.class).withAnyArguments().thenReturn(mock)toMockito.mockConstruction(ClassName.class)PowerMockito.doNothing(),PowerMockito.when(),PowerMockito.spy()with standard Mockito equivalentsAdditionally:
BricksXmlSerializerTestClassDiscovererhttps://catrobat.atlassian.net/browse/CATROID-1635
Your checklist for this pull request
Please review the contributing guidelines and wiki pages of this repository.