1.3.0
-
Support for mocked function arguments (via argument constraints) of type interface, sealed type, abstract class, & Array. All argument types should be supported. If you find an argument type that cannot be emulated with an argument contraint, please open an issue. The
Mocker.useReference
function only exists as a way to not be blocked while waiting for a fix. -
Support for optional mocking of interfaces default implementation. Note that a call to a non-mocked function with a default value will execute as expected, but will not be logged by the mocker, and therefore cannot be verified. If you need to verify, you need to mock.
-
Trying to verify a function that was not previously mocked is now a
MockingException
. It used to throw anAssertionException
stating that there wasn't any call to the function. Since the function was not mocked, it could not be otherwise. The error presentation was misleading and could lead to misinterpretation, especially with interface default methods. It now clearly states that you cannot verify a non-mocked function. -
Updated KSP to 1.0.4