- Fix: issues #44 - @:mock clash with existing setup/teardown functions
- Add: generate mocks via @:mock and @:spy metadata
- Fix: better compiler error message when trying to mock Abstract
- Fix: issue with mocking default 'null' value of abstracts on static platforms
- Fix: Issue #39 - Check against Map.IMap not
Map
and friends - Fix: error in example app
- Fix: Switch to runtime 'spy' flag in generated Mocks to prevent hardcoded mock/spy behavior after first use
- fixed issue when stubbing an instance variable mock (
this.mock.foo().returns("foo")
)
- fixed issue when verifying an instance variable mock (
this.mock.foo().verify
)
- Fixed issue with abstract types in typedef structures
- Fixed issue with edge cases where field return type is unknown (or null)
- Fixed issue with Complex type params that reference private types (issue #36)
- Fixed compilation error on methods generated by macros
- Added tests for a whole bunch of std haxe classes
- updated haxelib description
- Merge pull request #35 from jasononeil/patch-2 Null check on isVoidVoid()
- Merge pull request #34 from jasononeil/patch-1 Fix for PHP
- fixed cpp issues in haxe 3.0.x
- updated read me
- issue #21 - added automatic injection of
Matcher.any
for missing arguments on stubs - issue #23 - fixed mock method with type parameters
- fixed incorrect posInfos on verify exceptions
- issue #26 - added
mock.verifyZeroInteractions()
- added in dev dependency for hamcrest
- Fix: null return type throws exception on field
- Fix: extending function with untyped arguments of type TAnonymous in flash
- Fixed couple of minor backwards compatibility issues with flash target in Haxe 3.0.1
- updated for Haxe 3.1.x
- removed Haxe 2.x support
- removed dependency on tink macros
- hotfix for mocking getter/setters of type Void-Void (issue #17)
- released to new haxelib (3.x)
- Migrated to Haxe 3
- updated build files
- added @:isVar metadata to mocked interface getter setters (haxe3)
- added duplicate macro APIs when 'using' Mockatoo on methods that return Void (MacroVoid)
- Issue #14 : setter for property defined in interface is missing
- Issue #12 : added support for typed param contraints (class Test<T:(Foo,Bar)>{})
- Added verification of full expression. eg - Mockatoo.verify(mock.someMethod("foo"));
- verification exceptions correctly reference position where verification was executed
- verifying null or invalid mock instances now throws VerificationExceptions
- compile time check that method being verified exists on mock object
- compile time check that method being stubbed exists on mock object
- support for raw integer verification count. e.g. - Mockatto.verify(mock.someMethod(), 2);
- added shorthand API for stubbing with using mixins - e.g. mock.someMethod().returns("foo"), mock.someMethod.throws("error")
- added static methods to mockatoo.Mockatoo to return untyped Matchers when using 'using'
- removed Matcher.isNull as it is the same as just specifying 'null'
- Issue #9 optional method args without a
?
cause compilation error - Added -D MOCKATOO_LOG to opt into generation of log file (performance optimisation)
- added support for mocking property fields (with autowiring of getter/setters where applicable)
- added when().thenStub() for stubbing spy objects using default mock values
- added when().thenCallRealMethod() for suppressing mocks on specific methods
- fixed bug where a custom stub call ('thenCall(f)') did not recieve arguments
- fixed bug caused by when() not casting instance to mock;
- added spying (partial mocking)
- added compiler error if mocking final class on flash target
- added mocking for typedef structures (no verify/stubbing though)
- changed mock param type in verify to Dynamic (avoids casting)
- added Mockatoo.reset(mock) to reset stubs/verifications
- fixed issue #6 - super class typed params inside of typed params not mapped correctly