Some test cases fail with the error below when the plugin is built against Confluence 2.5.7 at
BDAC
.
This task is about refactoring the
MailPageAction so that the tests won't fail. To be specific, instead of directly instantiating an instance of VelocityMailBuilder, it will obtain an instance of it from a protected method. Therefore, the test cases can extend the action class and override the method to return a mock of VelocityMailBuilder which prevents the control from going to GeneralUtil.getI18n.