The automatic migration tool will fix most of these for you. Always invoke framework methods directly on the Android class. Shadow implementation methods are now marked protected to guard against this. code in overridden methods in subclasses wouldn’t be called). This could result in unexpected behavior (e.g. Prior to 4.0, it was possible (but ill-advised) to get the shadow for an Android framework object and invoke framework methods there. and are no longer supported in binary resources mode.If your test was using a custom manifest you’ll need to adapt it to not rely on that. Instead, Robolectric always uses the merged manifest generated by the Android toolchain. is no longer supported when using binary resources mode.The automatic migration tool includes a migration to help with this. If you have dependencies on, switch them to androidx.test see (Migrating to AndroidX). Android.enableUnitTestBinaryResources = true
0 Comments
Leave a Reply. |