JUnit Foundation is a lightweight collection of JUnit watchers, interfaces, and static utility classes that supplement and augment the functionality provided by the JUnit API.
I need to clarify is the difference between getCallableOf and encloseCallable. The first is used to retrieve the callable object created by the runner; the second creates a new object. For most runners, these objects are interchangeable, but for JUnitParamsRunner you don't get the parameters in the new object.
I need to highlight the isRetriedTest method for its handling of both test methods and theory methods.
I need to add notes of caution to watcher methods that get called when methods fail. For suite-level failures, the "atomic test" object included with the notification represents the test class, not a specific method.
getCallableOf
andencloseCallable
. The first is used to retrieve the callable object created by the runner; the second creates a new object. For most runners, these objects are interchangeable, but for JUnitParamsRunner you don't get the parameters in the new object.isRetriedTest
method for its handling of both test methods and theory methods.