For JUnit code, the unit test code demonstrates use of the Audit APIs and configuration:
org.alfresco.repo.audit.AuditComponentTest
- alfresco-audit-test-authenticationservice.xml: This is used by the test to capture both successful and unsuccessful login attempts in the audit data.
- testAuditAuthenticationService: This demonstrates the use of the auditSearch method.