1

I need a context in some unit test classes. I'm getting errors from 3rd SDKs when I try to provide an application class. So, I want to provide an empty application class for the unit tests.

@RunWith(RobolectricTestRunner::class)
class SampleTest {

    private val context: Context = ApplicationProvider.getApplicationContext()
Cafer Mert Ceyhan
  • 1,640
  • 1
  • 13
  • 17

0 Answers0