Re: [Dev] Test fails due to NoClassDefFoundError: Could not initialize class

2019-01-14 Thread Uvindra Dias Jayasinha
Since this is a unit test you have no option but to use power mock in order to mock the PrivilegedCarbonContext.endTenantFlow() static function using PowerMockito.mockStatic. I think we must be doing this already, not sure why the test is suddenly failing. We have done this in APIProviderImplTest.

[Dev] Test fails due to NoClassDefFoundError: Could not initialize class

2019-01-14 Thread Ishara Cooray
Hi, I am running into below error [1] while using below code snippet. > AuthorizationGrantCacheEntry cacheEntry = > AuthorizationGrantCache.getInstance().getValueFromCacheByToken(cacheKey); > if (cacheEntry == null) { > return new HashMap(); > } > Map userAttributes =