-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use controllers via
MockMvc
in Spring integration tests (#2447)
* Use controllers via `MockMvc` in concrete execution and update result models * Make `createGetMockMvcResponseModel` work when there's no `@RequestMapping` on controller class * Introduce `executableToCall` * Replace `executableToCall` with `MockMvc.perform` for Spring controllers * Remove handling of Spring controllers from `SpringUtExecutionInstrumentation` * Add `utCustomModelConstructorFinder` property to `UtModelConstructor` * Add `UtSpringMockMvcResultActionsModel` and its `UtCustomModelConstructor` * Add `UtCustomModel` (i.e. common parent of all framework specific models) * Properly handle `UtCustomModel` * Add `origin` to `UtSpringMockMvcResultActionsModel` * Split `CgMethodTestSet.executableId` into `executableUnderTest` and `executablesToCall` * Enable `UtMockMvcResultActionsModelConstructor` for subtypes of `ResultActions` * Add `CgCustomAssertConstructor` to `CgComponents` * Add custom asserts for `MockMvc.perform()` result * Remove redundant code * Handle `modelTagName` for `UtCustomModel` * Fix compilation after rebase * Fix JS compilation * Address comments in #2447
- Loading branch information
1 parent
65683b0
commit c21a916
Showing
58 changed files
with
1,310 additions
and
374 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
Oops, something went wrong.