Commit 15a9b04
committed
@W-21933885: [MSDK Android] App Attestation Implementation (Fix onResume Stub To Use 'just Runs' In TokenMigrationActivityTest)
The Firebase Test Lab failure was caused by using 'returns Unit' instead of 'just Runs' for stubbing the onResume() method. When stubbing void/Unit-returning methods in MockK, 'just Runs' is the correct syntax to prevent the method body from executing, whereas 'returns Unit' was still allowing the method body to execute, leading to pushNotificationReceiver access errors.
Changes:
- Changed onResume stub from 'returns Unit' to 'just Runs' (line 145)
- Added required MockK imports: 'just' and 'Runs' (lines 48, 52)
All 8 tests now pass successfully on the emulator.1 parent 7131666 commit 15a9b04
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | | - | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
0 commit comments