UTBotJava icon indicating copy to clipboard operation
UTBotJava copied to clipboard

Create value providers for common Spring specific types

Open EgorkaKulikov opened this issue 3 years ago • 1 comments

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

EgorkaKulikov avatar Jun 30 '23 15:06 EgorkaKulikov

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

IlyaMuravjov avatar Jul 03 '23 12:07 IlyaMuravjov