GrantPermissionOrSkipRule

class GrantPermissionOrSkipRule(permissions: Set<String>) : TestRule

Requests the given permissions for testing. If the permissions are not available/granted, the tests are skipped.

Parameters

permissions

requested permissions

Constructors

Link copied to clipboard
constructor(permissions: Set<String>)

Properties

Link copied to clipboard
val grantRule: TestRule

Functions

Link copied to clipboard
open override fun apply(base: Statement, description: Description): Statement