# TestDelegateInvoker

Artifact: [androidx.car.app:app-testing](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/testing/TestDelegateInvoker.kt+class:androidx.car.app.testing.TestDelegateInvoker) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)

*** ** * ** ***


```
public static class TestDelegateInvoker
```

<br />

*** ** * ** ***

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

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/car/app/testing/TestDelegateInvoker` | `https://developer.android.com/reference/androidx/car/app/testing/TestDelegateInvoker#INSTANCE()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull T>` | `<T extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/car/app/testing/TestDelegateInvoker#(androidx.car.app.serialization.ListDelegate).requestAllItemsForTest()( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/car/app/serialization/ListDelegate<@https://developer.android.com/reference/androidx/annotation/NonNull T> receiver )` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull T>` | `<T extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/car/app/testing/TestDelegateInvoker#(androidx.car.app.serialization.ListDelegate).requestItemRangeForTest(kotlin.Int,kotlin.Int)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/car/app/serialization/ListDelegate<@https://developer.android.com/reference/androidx/annotation/NonNull T> receiver, int startIndex, int endIndex )` |

## Public fields

### INSTANCE

Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)

```
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
)
```