Call private method in Flex, Actionscript.

Posted by core07 on Stack Overflow See other posts from Stack Overflow or by core07
Published on 2010-05-15T14:46:09Z Indexed on 2010/05/15 14:54 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

I need it in FlexUnit to test private methods. Is there any possibility to do this via reflection by using describeType or maybe flexUnit has some build in facility? I dislike artificial limitation that i cannot test private functions, it greatly reduces flexibility. Yes it is good design for me to test private functions, so please do not advise me to refactor my code. I do not want to break the encapsulation for the sake of unit testing.

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript