infinite / mockito-flex

0 stars 0 forks source link

Allow mocking AbstractService #30

Open infinite opened 9 years ago

infinite commented 9 years ago

I'd like to be able to do the following:

line1: var abstractService:AbstractService = mock(AbstractService, "", [""]); line 2: given(abstractService.getData(any())).willReturn(null);

Currently in line2 following exception is thrown: Error #1009: Cannot access a property or method of a null object reference. TypeError: Error #1009: Cannot access a property or method of a null object reference. at org.mockito.asmock.framework.proxy::InterceptorProxyListener/methodExecuted() at asmock.generated::AbstractService38BC6D19D4C21382D789ECC867DF0C14E1C6A17F/getOperation() at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()

USED VERSION: 1.3-RC5