UTBotJava
UTBotJava copied to clipboard
Create value providers for common Spring specific types
Description
There are many common Spring specific types that we would like to use in integration tests. So, we need Fuzzer to be able to deal with such types. It requires to write custom value providers.
First of all, we need to
- try to write one arbitrary value provider
- create a list of such types we are going to support
- discuss it and create new value providers after that
Some examples can be found here http://www.javabyexamples.com/using-model-modelmap-and-modelview-in-spring-mvc
Other options should be considered, to name a few:
- scanning classpath and searching for popular interface implementations
- letting user define additional beans in their test configuration and using these beans in place of method arguments (not just as this instance)
- mocking