Open infinite opened 10 years ago
an easier way of mocking events would be a good idea:
mockito.mockEvents( myDelegate );
at the moment you have to do something along the lines of this:
mockito.given( myDelegate.addEventListener( mockito.any(), mockito.any() ) ).will( mockito.callOriginal() ); mockito.given( myDelegate.dispatchEvent( mockito.any() ) ).will( mockito.callOriginal() );
an easier way of mocking events would be a good idea:
mockito.mockEvents( myDelegate );
at the moment you have to do something along the lines of this:
mockito.given( myDelegate.addEventListener( mockito.any(), mockito.any() ) ).will( mockito.callOriginal() ); mockito.given( myDelegate.dispatchEvent( mockito.any() ) ).will( mockito.callOriginal() );