Finish the task of generic-izing support for child method classes
·
201 commits
to master
since this release
This is a follow-on to the previous release, to address issues identified while trying to apply that release to an actual use case (JUnit Cucumber support).
LifecycleHooks- Add thegetFieldValuemethod to the public interface; removesetFieldValuemethod.MethodWatcher- Add type parameter to this interface, and extend theTypeDiscloserinterface. Change method signatures to replace arguments specific toFrameworkMethodwith generic type andReflectiveCallableobject.RunAnnouncer- Remove type parameter. Only post notifications toRunWatcherproviders that support methods of the current type.RunReflectiveCall- Set type ofcallableargument to its actual class (ReflectiveCallable). Remove object unwrapping specific toFrameworkMethod. Update invocation notifications to their revised signatures. Ensure that we don't die when logging debug messages.RunWatcher- Extend theTypeDiscloserinterface.TypeDiscloser- New interface to require implementations of generic interfaces to publicize their supported type.