First attempt at generic-izing support for child method classes
·
214 commits
to master
since this release
This is a first stab at replacing the hardcoded support for the native JUnit method class (FrameworkMethod) with generic support for whatever method class happens to be running. As I discovered when applying this release to an actual use case (support for JUnit Cucumber), I didn't go far enough. Here's what changed in this release:
AtomicTest- Replace hardcoded support forFrameworkMethodwith generic type parameter.LifecycleHooks- Add type parameter toAtomicTestreferences. Replace custom reflection-based method invocation with Apache CommonsMethodUtilscall.RunAnnouncer- Add type parameter to this class, and toAtomicTestandRunWatcherreferences.RunChild- Expand scope ofAtomicTestcreation to ensure that clients are able to acquire test objects related to non-native runners.RunWatcher- Add type parameter to this interface and toAtomicTestreferences.