I'm using aspects to restrict access to the internal API within the codebase by following the "declare error" approach. To test the aspects, i create classes that violates the rules
and manually check the errors in eclipse.I am finding this approach time consuming and error prone. Is there a recommended approach to programmatically check the different compiler errors? Any advice would be appreciated.
Thanks,
Jimmy