Skip to content

Commit

Permalink
test: Add compat test for retrieving PackageInstaller
Browse files Browse the repository at this point in the history
It is tested with targetSdk 29.

Signed-off-by: utzcoz <[email protected]>
  • Loading branch information
utzcoz committed Nov 16, 2024
1 parent 96e1a76 commit 39f59d0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,10 @@ class NormalCompatibilityTest {
val activity = Robolectric.setupActivity(MainActivity::class.java)
assertThat(activity.creationSource).isEqualTo(CreationSource.DEFAULT_CONSTRUCTOR)
}

@Test
fun `Retrieve PackageInstaller succeed`() {
val packageInstaller = application.packageManager.packageInstaller
assertThat(packageInstaller).isNotNull()
}
}

0 comments on commit 39f59d0

Please sign in to comment.