Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4216ca4 authored by Felipe Leme's avatar Felipe Leme
Browse files

Minor improvements on UserInfoTest and UserManagerServiceUserInfoTest.

- Remove unnecessary AndroidJUnit4 runner
- Use Truth insteads of JUnit assertions
- Add @SuppressWarning (due to isPrimary() and FLAG_GUEST)
- Use withMessage() instead of just that()
- Use isTrue() / isFalse() instead of isEqualTo(boolean)
- Use expect instead of assert
- Consistenly use createTestUserInfo()
- Add missing assertions (like isSupervisingProfile())

Test: atest FrameworksCoreTests:UserInfoTest UserManagerServiceUserInfoTest
Bug: 374832167
Flag: TEST_ONLY

Change-Id: I5b4f89e24bb67656ccbd4447fee40f5078d39022
parent f1b7e6fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment