0.23.0
Behaviour change
Auto-mapping in IDependencyOwner
is now added at the end of the constructor instead of the beginning.
Changelog
Bugs
- Dependencies checking should happen after arguments building [DoclerLabs/hexDSL@3ea74cd]
- fix DependencyOwner on super class usage [DoclerLabs/hexInject@6d007bb]
- use
mapping.toValue
instead ofmapping
for injectInto inMappingChecker
[DoclerLabs/hexInject@603e30f]
Enhancements
- Add
@AfterMapping
metadata inIDependencyOwner
to define custom auto-mapping position - Add recursivity on property, Array construction and new operator in Flow DSL [DoclerLabs/hexDSL@7e06124, DoclerLabs/hexDSL@158a790, DoclerLabs/hexDSL@ad71f7a]
See some examples below:
//Constructor
test = new hex.mock.MockContextHolder( new hex.mock.MockApplicationContext( 'newRecursivity' ) );
//Constructor use for property assignment
r = new hex.mock.MockRectangle();
r.size = new hex.structures.Point( 10, 20 );
//Constructor use in anonymous structures
o2 = { p: new hex.mock.MockContextHolder( new hex.mock.MockApplicationContext( 'propertyRecursivity' ) ) };
//Array declaration in another Array with constructor use
test =
[
new hex.mock.MockClass(),
new hex.mock.AnotherMockClass(),
new hex.mock.MockClassWithIntGeneric( 3 ),
[ new hex.mock.MockClassWithIntGeneric( 4 ), 5 ]
];
- Prepare custom parsers support