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


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

Summary

Public constructors

Device(@NonNull String role, int api, @NonNull String serial)

Public methods

final int

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

final @NonNull String

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

final @NonNull String

The specific hardware/emulator serial number to match.

Public constructors

Device

Added in 1.0.0-alpha01
public Device(@NonNull String role, int api, @NonNull String serial)

Public methods

getApi

public final int getApi()

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

getRole

public final @NonNull String getRole()

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

getSerial

public final @NonNull String getSerial()

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