# TargetLibrary

Artifact: [androidx.test.ext:junit-gtest](https://developer.android.com/jetpack/androidx/releases/test-ext) [View Source](https://cs.android.com/search?q=file:androidx/test/ext/junitgtest/TargetLibrary.kt+class:androidx.test.ext.junitgtest.TargetLibrary) Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/test-ext#1.0.0-alpha03) Deprecated in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/test-ext#1.0.0-alpha03)

*** ** * ** ***


```
@Retention(value = AnnotationRetention.RUNTIME)
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Inherited
public annotation TargetLibrary
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This annotation is deprecated.**   
> Library is deprecated

Annotation used by GtestRunner to determine which Gtest suite to run. Should be called with the name of the library containing the Gtest suite, e.g. `TargetLibrary("mytest")`.

## Summary

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[getLibraryName](https://developer.android.com/reference/androidx/test/ext/junitgtest/TargetLibrary#getLibraryName())()` **This method is deprecated.** Library is deprecated |

## Public methods

### getLibraryName

```
public final @NonNull String [getLibraryName](https://developer.android.com/reference/androidx/test/ext/junitgtest/TargetLibrary#getLibraryName())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Library is deprecated