1540 unit test token 401
Description
Unit tests are added to increase reliability of token management as tokens get expired frequently.
Technical details
When app faces status 401 (Unauthorized user)
, it triggers an event from GplayHttpClient
to refresh the token. Now unit tests are added to validate event is triggered with correct value when 401 (Unauthorized user)
is faced during any gplay api is called. And tested refreshing token process by asserting expected value is set in livedata
(authObjectList) of LoginViewModel
.