uweku / mockA

mockA is a free Mocking Framework for ABAP
Apache License 2.0
42 stars 6 forks source link

Fix issue with mocking abstract classes #13

Closed lucastetreault closed 9 years ago

lucastetreault commented 9 years ago

When mocking an abstract class, if you don't mock all the abstract methods explicitly you get an error saying that a subclass of an abstract class must implement all the abstract methods of the super class. This gets around that issue by redefining any methods that are abstract even if they don't have registered call patterns.

uweku commented 9 years ago

Thank you Lucas, I manually included the changes as the file seems to be corrupt. E.g. it lacks the method TRY_CREATE_BY_GENERATED_CLASS( ).