TestDelegateInvoker


@ExperimentalCarApi
public static class TestDelegateInvoker


Provides a simplified interface for invoking AIDL/delegate APIs in tests

Summary

Public fields

static @NonNull TestDelegateInvoker

Public methods

final @NonNull List<@NonNull T>
<T extends Object> requestAllItemsForTest(
    @NonNull ListDelegate<@NonNull T> receiver
)
final @NonNull List<@NonNull T>
<T extends Object> requestItemRangeForTest(
    @NonNull ListDelegate<@NonNull T> receiver,
    int startIndex,
    int endIndex
)

Public fields

INSTANCE

Added in 1.7.0-beta02
public static @NonNull TestDelegateInvoker INSTANCE

Public methods

requestAllItemsForTest

public final @NonNull List<@NonNull T> <T extends Object> requestAllItemsForTest(
    @NonNull ListDelegate<@NonNull T> receiver
)

requestItemRangeForTest

public final @NonNull List<@NonNull T> <T extends Object> requestItemRangeForTest(
    @NonNull ListDelegate<@NonNull T> receiver,
    int startIndex,
    int endIndex
)