use of org.nhindirect.common.audit.provider.MultiProviderAuditorProvider in project nhin-d by DirectProject.
the class MultiProviderAuditorProviderTest method testCreateProviderFromAuditorArray.
@Test
public void testCreateProviderFromAuditorArray() {
MultiProviderAuditorProvider provider = new MultiProviderAuditorProvider(new Auditor[] { new NoOpAuditor(), new LoggingAuditor() });
assertNotNull(provider);
assertNotNull(provider.get());
assertTrue(provider.get() instanceof MultiProviderAuditor);
}
use of org.nhindirect.common.audit.provider.MultiProviderAuditorProvider 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