Switched to AndroidX and received deprecated: import androidx.test.InstrumentationRegistry.
AndroidX
import androidx.test.InstrumentationRegistry
If I made next import: import androidx.te
import androidx.te
The following code is deprecated now:
Context context = InstrumentationRegistry.getInstrumentation().getTargetContext();
Instead use:
Context context = ApplicationProvider.getApplicationContext();