commit | 0d9e49b3a7ce7c66751f79513f2221c1a577bfa9 | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Tue Nov 28 07:23:52 2023 +0000 |
committer | Riddle Hsu <riddlehsu@google.com> | Tue Nov 28 07:23:52 2023 +0000 |
tree | 54394b41325bf92ce8983bb907869a5d73374777 | |
parent | 1f50aa3cbf58d917b903d1733cccb619fdfbd8b3 [diff] |
Avoid unfinished MockitoSession if setUp has errors If there is an exception before initializing mInputChannel, the tearDown will meet NPE. Then finishMocking and clearInlineMocks are skipped which will affect the next test. Bug: 313490373 Test: SystemServicesTestRuleTest Change-Id: I846a209d9cbdd1ccd18e05fa4e053e16218d3c82