@MustBeDocumented
@Retention(value = AnnotationRetention.RUNTIME)
@Target(allowedTargets = [AnnotationTarget.VALUE_PARAMETER])
annotation Device


Qualifier annotation used for multi-device orchestration. Instructs the JUnit 5 extension which connected device characteristics to resolve.

Summary

Public constructors

Device(role: String, api: Int, serial: String)

Public properties

Int

The requested SDK API level (e.g. 31, 34).

String

The requested role of the device in the multi-device test setup.

String

The specific hardware/emulator serial number to match.

Public constructors

Device

Added in 1.0.0-alpha01
Device(role: String = "", api: Int = 0, serial: String = "")

Public properties

api

val apiInt

The requested SDK API level (e.g. 31, 34). Defaults to 0 (any matches).

role

val roleString

The requested role of the device in the multi-device test setup. Defaults to "".

serial

val serialString

The specific hardware/emulator serial number to match. Defaults to "" (any match).