Search in sources :

Example 1 with DefaultStepHandler

use of org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler in project carbon-identity-framework by wso2.

the class FrameworkUtilsTest method testGetStepHandlerExistHandler.

@Test
public void testGetStepHandlerExistHandler() {
    DefaultStepHandler testStepHandler = new DefaultStepHandler();
    ConfigurationFacade.getInstance().getExtensions().put(FrameworkConstants.Config.QNAME_EXT_STEP_HANDLER, testStepHandler);
    StepHandler stepHandler = FrameworkUtils.getStepHandler();
    assertEquals(stepHandler, testStepHandler);
}
Also used : DefaultStepHandler(org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler) DefaultStepHandler(org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler) StepHandler(org.wso2.carbon.identity.application.authentication.framework.handler.step.StepHandler) GraphBasedStepHandler(org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.GraphBasedStepHandler) Test(org.testng.annotations.Test) BeforeTest(org.testng.annotations.BeforeTest) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) PowerMockIdentityBaseTest(org.wso2.carbon.identity.testutil.powermock.PowerMockIdentityBaseTest)

Aggregations

PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)1 BeforeTest (org.testng.annotations.BeforeTest)1 Test (org.testng.annotations.Test)1 StepHandler (org.wso2.carbon.identity.application.authentication.framework.handler.step.StepHandler)1 DefaultStepHandler (org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler)1 GraphBasedStepHandler (org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.GraphBasedStepHandler)1 PowerMockIdentityBaseTest (org.wso2.carbon.identity.testutil.powermock.PowerMockIdentityBaseTest)1