use of org.nhindirect.common.audit.provider.NoOpAuditorProvider in project nhin-d by DirectProject.
the class MultiProviderAuditorProviderTest method testCreateProviderFromAuditorcollection.
@SuppressWarnings("unchecked")
@Test
public void testCreateProviderFromAuditorcollection() {
Provider<Auditor>[] provs = new Provider[2];
provs[0] = new NoOpAuditorProvider();
provs[1] = new LoggingAuditorProvider();
MultiProviderAuditorProvider provider = new MultiProviderAuditorProvider(provs);
assertNotNull(provider);
assertNotNull(provider.get());
assertTrue(provider.get() instanceof MultiProviderAuditor);
}
Aggregations