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/TestTarget#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/dalvik/annotation/TestTarget#inhmethods)

# TestTarget

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

|---|
| dalvik.annotation.TestTarget |

<br />

*** ** * ** ***

<br />

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

Obsolete.

Defines an annotation used be used within the TestInfo annotation. It specifies a single method target for the test (but can be used multiple times).

## Summary

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/dalvik/annotation/TestTarget#conceptName()() ` Specifies the name of a concept being tested. |
| ` https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/dalvik/annotation/TestTarget#methodArgs()() ` Specifies the signature of the method that is being tested, in terms of Java classes. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/dalvik/annotation/TestTarget#methodName()() ` Specifies the name of the method that is 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

### conceptName

Added in [API level 3](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)

```
public String conceptName ()
```

Specifies the name of a concept being tested. Use this if `methodName` is not accurate enough. E.g. for `https://developer.android.com/reference/java/util/regex/Pattern#compile(java.lang.String)` `methodName` is not sufficient since the String contains a pattern with its own syntax which has to be tested with different aspects. Areas concerned are e.g. JDBC (SELECT, INSERT, UPDATE, DELETE, ...), regex (character sets, operators,...), formatters (DecimalFormat, DateFormat, ChoiceFormat, ...), ...

<br />

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

### methodArgs

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

```
public Class[]<?> methodArgs ()
```

Specifies the signature of the method that is being tested, in terms of Java classes.

<br />

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

### methodName

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

```
public String methodName ()
```

Specifies the name of the method that is being tested.

<br />

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