wso2 / carbon-device-mgt

Apache License 2.0
53 stars 113 forks source link

Checking if the user store manager class is a sub class of the default #1142

Closed madawas closed 6 years ago

madawas commented 6 years ago

Purpose

Resolves wso2/product-iots#1556

Goals

This commit is to modify the current logic which checks if the UserStoreManager class is equal to the JDBCUserStoreManager class to support subclasses of the JDBCUserStoreManager class to return correct total user count.

Approach

In this commit, instead of comparing the string name, tests the UserStoreManager instance is a type of JDBCUserStoreManager.