Improve error message for non-static external @MethodSource
factory methods
#3276
Closed
3 tasks done
@MethodSource
factory methods
#3276
Overview
After reviewing #3263, I realized that the error message is also cryptic if an external factory method is non-static when the test class is configured to run with test instance per-class lifecycle semantics.
For the record, prior to #3263, the error message was also cryptic if an external factory method was non-static when the test class was configured to run with test instance per-method lifecycle semantics.
Example
The test method above fails with:
Definition of Done
@MethodSource
factory methodsThe text was updated successfully, but these errors were encountered: