summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Felipe Leme <felipeal@google.com> 2023-02-22 09:34:23 -0800
committer Felipe Leme <felipeal@google.com> 2023-02-22 13:32:40 -0800
commit7d97bad8bf9e4b37129f484aea9384de99beb235 (patch)
treecddb98b33f9dfdae77280ec39a8f72aeb473950d /api/api_test.go
parentd8f903069b758ac4585b3a6377fe8a5b29759583 (diff)
Refactored ExtendedMockitoTestCase into ExtendedMockitoRule
ExtendedMockitoTestCase was created mostly for session management (to make sure tests properly closed the session and to clear some internal mockito state that could cause OOM), but to be really effective, all classes would have to extend it. Given that constraint - and the fact that there is already a rule to facilitate session management - this CL gets rid of that super class and provide another rule instead (which's built on top of the existing one). Also fixed CpuInfoReaderTest, which was using %d instead of %s on assertWithMessage() and replace those calls by expectWithMessage()). Bug: Test: atest \ FrameworksMockingServicesTests:AlarmManagerServiceTest \ FrameworksMockingServicesTests:ActivityManagerServiceInjectorTest \ FrameworksMockingServicesTests:BroadcastQueueModernImplTest \ FrameworksMockingServicesTests:CachedAppOptimizerTest \ FrameworksMockingServicesTests:CpuInfoReaderTest \ FrameworksMockingServicesTests:CpuMonitorServiceTest \ FrameworksMockingServicesTests:UserManagerServiceTest \ FrameworksMockingServicesTests:UserVisibilityMediatorMUMDTest \ FrameworksMockingServicesTests:UserVisibilityMediatorMUPANDTest \ FrameworksMockingServicesTests:UserVisibilityMediatorSUSDTest Bug: 268515318 Change-Id: I59f3ee693cbad01e9289cf069b7d039840f7c811
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions