use of org.nhindirect.stagent.provider.MockSmtpAgentConfigProvider in project nhin-d by DirectProject.
the class SmtpAgentFactory_buildAgentInjectorTest method testBuildAgentInjector_customConfigModule_assertInjector.
public void testBuildAgentInjector_customConfigModule_assertInjector() throws Exception {
Injector injector = SmtpAgentFactory.buildAgentInjector(new URL("http://doesntmatter"), new MockSmtpAgentConfigProvider(Arrays.asList("testdomain.com")), null);
assertNotNull(injector);
// try to get an instance of the configuration object
NHINDAgent agent = injector.getInstance(NHINDAgent.class);
assertNotNull(agent);
assertTrue(agent instanceof MockNHINDAgent);
}
Aggregations