GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — Support mock strategies and type replacement in Spring unit test fuzzing by IlyaMuravjov · Pull Request #2561 · UnitTestBot/UTBotJava Conversation
|
|
@Markoutte, could you take a look, please? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1ba7d74 to
b130123
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
For me it is hard to understand all type hierarchy in Spring module and all those wrappers, delegators and adapters. Maybe, documentation could help?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * arbitrary types, unlike type-specific value providers that were designed to provide values of | ||
| * few specific popular types (e.g. `List`, `String`, etc.). | ||
| */ | ||
| interface AnyObjectValueProvider : JavaValueProvider |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Marker interface usually doesn't extend any other interfaces and has no methods. This is because you could use several marker interfaces for one class. In this case AnyObjectValueProvider is used as real type in hierarchy, that maybe useful, but I think it is redundant.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's not redundant, because it's used in MockingJavaFuzzingContext, which avoids mocking types that have value providers other than AnyObjectValueProvider, because it's a bad practice to mock types like List, Date, and Map.
I can't simply list all implementers of AnyObjectValueProvider in MockingJavaFuzzingContext, because the set of these implementers is subject to change as #2583 shows.
Made AnyObjectValueProvider truly a marker interface that doesn't extend any interfaces.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7f325a4 to
98da383
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.