This commit is contained in:
Alessio Placitelli 2019-07-31 11:15:01 +02:00
Родитель 7f276c7146
Коммит a3b7cf3a5c
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -103,7 +103,8 @@ import org.mockito.Mockito.`when`
@RunWith(AndroidJUnit4::class)
class MyCustomPingSchedulerTest {
// Apply the GleanTestRule
// Apply the GleanTestRule to set up a disposable Glean instance.
// Please note that this clears the Glean data across tests.
@get:Rule
val gleanRule = GleanTestRule(ApplicationProvider.getApplicationContext())

Просмотреть файл

@ -11,7 +11,8 @@ In order to prevent issues with async calls when unit testing Glean, it is impor
```kotlin
@RunWith(AndroidJUnit4::class)
class ActivityCollectingDataTest {
// Apply the GleanTestRule
// Apply the GleanTestRule to set up a disposable Glean instance.
// Please note that this clears the Glean data across tests.
@get:Rule
val gleanRule = GleanTestRule(ApplicationProvider.getApplicationContext())