Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/dalvik/annotation/TestTargetClass#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/dalvik/annotation/TestTargetClass#inhmethods)

# TestTargetClass

` public abstract @interface TestTargetClass `   
` implements https://developer.android.com/reference/java/lang/annotation/Annotation `

|---|
| dalvik.annotation.TestTargetClass |

<br />

*** ** * ** ***

<br />

**This @interface was deprecated in API level 14.**   

Obsolete.

Defines an annotation for test classes that allows to link them to the class that is being tested. The current assumption is that the test are somewhat organized according to the API classes they test. Might be too strict for some cases.

## Summary

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/dalvik/annotation/TestTargetClass#value()() ` Specifies the class being tested. |

### Inherited methods

From interface ` https://developer.android.com/reference/java/lang/annotation/Annotation ` ` abstract https://developer.android.com/reference/java/lang/Class<? extends https://developer.android.com/reference/java/lang/annotation/Annotation>` ` https://developer.android.com/reference/java/lang/annotation/Annotation#annotationType()() `

Returns the annotation interface of this annotation.
` abstract boolean` ` https://developer.android.com/reference/java/lang/annotation/Annotation#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Returns true if the specified object represents an annotation that is logically equivalent to this one.
` abstract int` ` https://developer.android.com/reference/java/lang/annotation/Annotation#hashCode()() `

Returns the hash code of this annotation.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/annotation/Annotation#toString()() `

Returns a string representation of this annotation.

## Public methods

### value

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Class<?> value ()
```

Specifies the class being tested.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/Class<?>` | <br /> |