|
Project Information
Links
|
SummaryReplace any clojure function with a mock function that tracks invocation counts or simply stubs a complex calculation for quick and easy unit testing. Functions are overriden with mocks only for the duration of the test and return to their normal state immediately following. Overriding the functions is accomplished via clojure's bind function which is limited to the current thread. Roadmap- Option to call original functions from within a mock expectation
- Mock java objects (probably wrapping an existing java mocking library)
- dynamic stub functions with return values dependent on arguments
- verifying invocation order
- Other ideas? Open to suggestions...
|