Open
Description
There are two aspects I would like to reuse of the MethodSource annotation mechanism:
- the logic to find a suiting method (implemented in MethodArgumentsProvider.findMethod)
- The tooling support associated with it -- intellij allows to jump to the method, include it in references etc. (see https://github.com/JetBrains/intellij-community/blob/master/plugins/junit/src/com/intellij/execution/junit/references/JUnitReferenceContributor.kt)
Deliverables
- for point 1: make MethodArgumentsProvider.findMethod re-usable
- for point 2:
- introduce a marker Annotation which specifies (as contract) that the
value
of the annotation represents method references - annotate MethodSource with this annotation (the intellij junit plugin could then base it's implementation on the marker annotation)
- introduce a marker Annotation which specifies (as contract) that the