TestActivityStack

Added in 1.2.0

public final class TestActivityStack


Summary

Public methods

static final @NonNull ActivityStack
createTestActivityStack(
    @NonNull List<@NonNull Activity> activitiesInProcess,
    boolean isEmpty
)

Creates an ActivityStack instance for testing.

Public methods

createTestActivityStack

public static final @NonNull ActivityStack createTestActivityStack(
    @NonNull List<@NonNull Activity> activitiesInProcess,
    boolean isEmpty
)

Creates an ActivityStack instance for testing. The default values are an empty list for activitiesInProcess but a false value for isEmpty. This is the same as being embedded with an Activity from another process.

Parameters
@NonNull List<@NonNull Activity> activitiesInProcess

The Activity list with the same process of the host task with empty list as the default value.

boolean isEmpty

Indicates whether this ActivityStack contains any Activity regardless of the process with false as the default value.

Returns
@NonNull ActivityStack

An ActivityStack instance for testing.