Search in sources :

Example 16 with LoggingAuditor

use of org.nhindirect.common.audit.impl.LoggingAuditor in project nhin-d by DirectProject.

the class AuditorFactoryTest method testCreateAuditor_SingleProvider_AssertCreatedAuditor.

@Test
public void testCreateAuditor_SingleProvider_AssertCreatedAuditor() throws Exception {
    LoggingAuditorProvider proviver = new LoggingAuditorProvider();
    Auditor auditor = AuditorFactory.createAuditor(proviver);
    assertNotNull(auditor);
    assertTrue(auditor instanceof LoggingAuditor);
}
Also used : LoggingAuditor(org.nhindirect.common.audit.impl.LoggingAuditor) MultiProviderAuditor(org.nhindirect.common.audit.impl.MultiProviderAuditor) NoOpAuditor(org.nhindirect.common.audit.impl.NoOpAuditor) LoggingAuditorProvider(org.nhindirect.common.audit.provider.LoggingAuditorProvider) LoggingAuditor(org.nhindirect.common.audit.impl.LoggingAuditor) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)16 LoggingAuditor (org.nhindirect.common.audit.impl.LoggingAuditor)16 MultiProviderAuditor (org.nhindirect.common.audit.impl.MultiProviderAuditor)10 NoOpAuditor (org.nhindirect.common.audit.impl.NoOpAuditor)10 Auditor (org.nhindirect.common.audit.Auditor)6 DefaultAuditContext (org.nhindirect.common.audit.DefaultAuditContext)2 LoggingAuditorProvider (org.nhindirect.common.audit.provider.LoggingAuditorProvider)2 Module (com.google.inject.Module)1 ArrayList (java.util.ArrayList)1 ProviderAuditorModule (org.nhindirect.common.audit.module.ProviderAuditorModule)1 MultiProviderAuditorProvider (org.nhindirect.common.audit.provider.MultiProviderAuditorProvider)1 SPIAuditorProvider (org.nhindirect.common.audit.provider.SPIAuditorProvider)1