Difficulty in mocking final classes (Worksheet- Font- Color)

I am trying to write test cases involving a Worksheet but since it is a final class I cannot mock it. Is there a reason for Worksheet/Color/Font to be final? Many others are not final including Workbook and Cell.


It would be immensely helpful if these (Workbook, Font, and Color) could be made to not be final as they are much more difficult to test properly this way. Thanks in advance.

Hi,

Thanks for your interest in Aspose.Cells for Java and posting your problem.

We have logged your requirement in our database and will update you asap if your requirement could be fulfilled.

This issue has been logged as CELLSJAVA-28658.

Hi,


We have released Aspose.Cells for Java (Latest Version) for your requirement logged as CELLSJAVA-28658. In this version we have made your mentioned classes inheritable. Please try this JAR and let us know of your feedback.
Thank you

Hi,

The above link to the new release is not working. Please download it from this link: Aspose.Cells for Java (Latest Version).

The issues you have found earlier (filed as CELLSJAVA-28658) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.