use of org.wso2.carbon.identity.core.handler.InitConfig in project carbon-identity-framework by wso2.
the class HttpIdentityResponseFactoryTest method testInitWithDuplicateEventListenerProperties.
@Test(dataProvider = "initConfigDataProvider")
public void testInitWithDuplicateEventListenerProperties(Properties eventListenerProperties, Properties expectedListenerProperties) throws Exception {
Util.mockReturnEventListenerConfigWithProperties(eventListenerProperties);
httpIdentityResponseFactory.init(new InitConfig());
Util.assertPropertiesEqual(httpIdentityResponseFactory.properties, expectedListenerProperties);
}
use of org.wso2.carbon.identity.core.handler.InitConfig in project carbon-identity-framework by wso2.
the class AbstractEventHandlerTest method testInit.
@Test
public void testInit() {
InitConfig configuration = new ModuleConfiguration();
TestEventHandler testEventHandler = new TestEventHandler();
testEventHandler.init(configuration);
Assert.assertEquals(testEventHandler.configs, configuration);
}
Aggregations