Commit c21a916
authored
Use controllers via
* 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 #2447MockMvc in Spring integration tests (#2447)1 parent 65683b0 commit c21a916
File tree
58 files changed
+1310
-374
lines changed- utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api
- util
- constructor
- utbot-framework-test/src/test/kotlin/org/utbot/examples/models
- utbot-framework/src/main/kotlin/org/utbot
- engine
- framework
- assemble
- codegen
- domain
- context
- models
- builders
- generator
- reports
- services
- access
- language
- tree
- context
- simple
- spring
- fields
- util
- utbot-instrumentation/src
- main/kotlin/org/utbot/instrumentation
- instrumentation
- execution
- constructors
- context
- phases
- spring
- process
- rd
- test/kotlin/org/utbot/instrumentation/instrumentation/execution/constructors
- utbot-js/src/main/kotlin
- api
- framework/codegen/model/constructor/tree
- utbot-python/src/main/kotlin/org/utbot/python
- framework/codegen/model/constructor/tree
- utbot-spring-commons
- src/main/kotlin/org/utbot/spring
- dummy
- provider
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
58 files changed
+1310
-374
lines changedLines changed: 75 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
290 | 300 | | |
291 | 301 | | |
292 | 302 | | |
293 | | - | |
| 303 | + | |
| 304 | + | |
294 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
295 | 319 | | |
296 | 320 | | |
297 | 321 | | |
| |||
305 | 329 | | |
306 | 330 | | |
307 | 331 | | |
308 | | - | |
309 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
310 | 335 | | |
311 | 336 | | |
312 | 337 | | |
| |||
315 | 340 | | |
316 | 341 | | |
317 | 342 | | |
318 | | - | |
| 343 | + | |
| 344 | + | |
319 | 345 | | |
320 | 346 | | |
321 | 347 | | |
| |||
550 | 576 | | |
551 | 577 | | |
552 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
553 | 594 | | |
554 | 595 | | |
555 | 596 | | |
| |||
564 | 605 | | |
565 | 606 | | |
566 | 607 | | |
567 | | - | |
568 | | - | |
| 608 | + | |
| 609 | + | |
569 | 610 | | |
570 | 611 | | |
571 | 612 | | |
| |||
703 | 744 | | |
704 | 745 | | |
705 | 746 | | |
706 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
707 | 758 | | |
708 | 759 | | |
709 | 760 | | |
| |||
721 | 772 | | |
722 | 773 | | |
723 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
724 | 792 | | |
725 | 793 | | |
726 | 794 | | |
| |||
0 commit comments