Common code used by both the Active Directory Authentication Library (ADAL) and the Microsoft Authentication Library (MSAL)
41
stars
35
forks
source link
fix unit tests (robolectric will throw an exception when context.getSystemService(Context.DEVICE_POLICY_SERVICE) is invoked) #2306
Closed
rpdome closed 8 months ago
robolectric will throw an exception when context.getSystemService(Context.DEVICE_POLICY_SERVICE) is invoked
in this case, we'll silently swallow the exception and return false. (In unit tests, we would only use mock content provider anyway)