Search in sources :

Example 1 with DefaultClaimHandler

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

the class FrameworkUtilsTest method testGetClaimHandlerExistHandler.

@Test
public void testGetClaimHandlerExistHandler() {
    DefaultClaimHandler testClaimHandler = new DefaultClaimHandler();
    ConfigurationFacade.getInstance().getExtensions().put(FrameworkConstants.Config.QNAME_EXT_CLAIM_HANDLER, testClaimHandler);
    ClaimHandler claimHandler = FrameworkUtils.getClaimHandler();
    assertEquals(claimHandler, testClaimHandler);
}
Also used : DefaultClaimHandler(org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler) ClaimHandler(org.wso2.carbon.identity.application.authentication.framework.handler.claims.ClaimHandler) DefaultClaimHandler(org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler) 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 ClaimHandler (org.wso2.carbon.identity.application.authentication.framework.handler.claims.ClaimHandler)1 DefaultClaimHandler (org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler)1 PowerMockIdentityBaseTest (org.wso2.carbon.identity.testutil.powermock.PowerMockIdentityBaseTest)1