use of org.nhindirect.common.audit.provider.SPIAuditorProvider in project nhin-d by DirectProject.
the class SPIAuditorProviderTest method testCreateSingleAuditorFromSPI_NullConstructor_AssertMutliProviderAuditorCreated.
@Test
public void testCreateSingleAuditorFromSPI_NullConstructor_AssertMutliProviderAuditorCreated() throws Exception {
setupSPIImplementation(LoggingAuditor.class);
setupSPIImplementation(NoOpAuditor.class);
SPIAuditorProvider prov = new SPIAuditorProvider(null);
assertTrue(prov.isImplementationAvailable());
assertNotNull(prov.get());
assertTrue(prov.get() instanceof MultiProviderAuditor);
}
Aggregations