use of org.wso2.carbon.apimgt.impl.utils.StandaloneAuthorizationManagerClient in project carbon-apimgt by wso2.
the class StandaloneAuthorizationManagerClientTestCase method testGetRoleNamesException.
@Test(expected = APIManagementException.class)
public void testGetRoleNamesException() throws Exception {
StandaloneAuthorizationManagerClient standaloneAuthorizationManagerClient = new StandaloneAuthorizationManagerClient();
Mockito.when(userStoreManager.getRoleNames()).thenThrow(new UserStoreException());
standaloneAuthorizationManagerClient.getRoleNames();
}
Aggregations