-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Substitute mockito with mockk and assertj with kluent (#177)
* Introduce spring-mockk * Add kluent to test-lib * common: Use kluent, mockk, mockk-spring over assertj, mockito, mockito-kotlin * public: Use kluent, mockk, mockk-spring over assertj, mockito, mockito-kotlin * core: Use kluent, mockk, mockk-spring over assertj, mockito, mockito-kotlin * Remove assertj, mockito, mockito-kotlin except from web projects * Convert public-web tests to kotlin and remove mockito/mockito-kotlin, assertj * Convert core-web tests to kotlin and remove mockito/mockito-kotlin, assertj * Prevent transitive dependencies on mockito, hamcrest and assertj * run check with stacktrace but not info. Try with daemon * Clear all mocks after each test * Fix mocking verification * Remove unused import * Fix test after merge issue * ktlint autocorrection * ktlint manual changes * Avoid relaxing in some tests, avoid mocking if possible * Fix test fixtures * Raise MaxMetaspace to 3G * Increase maxHeapSize for tests * Merge test task configuration * Raise memory for kotlin compiler * Temporarily disable the slowest tests * Disable the slowest tests from July 10 * Reactivate ResultPanelInEditModeTest * Fix mocking of AjaxRequestTarget * unmockAll() * dont mock relaxedly * Fix spring-boot-configuration-processor setup * Cleanup tests * Avoid using mocks where possible * unmockAll * tester.destroy * Use AjaxTargetRequestSpy instead of mocking AjaxTargetRequest * Use improved TestAjaxRequestHandler to considerably speed up the tests Use LinkedHashSet instead of LinkedList to store the instances of IListener. This improves the time complexity in method addListener for the contains method from O(n) to O(1). This brings down the time spent for running the `gradlew check` command for the entire project from several hours to 20 minutes again (with mockk - mockito was not affected that much). * Use HashSet in TestAjaxRequestHandler - trading speed for maintaining insertion order * Remove unmockkAll * Revert "Use HashSet in TestAjaxRequestHandler - trading speed for maintaining insertion order" This reverts commit 2258b71. * Revert "Raise memory for kotlin compiler" This reverts commit 38840f6. * Revert "Raise MaxMetaspace to 3G" This reverts commit b878079.
- Loading branch information
Showing
577 changed files
with
21,403 additions
and
22,996 deletions.
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
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
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.