Skip to content

Most visited

Recently visited

navigation
added in API level 1
Deprecated since API level 14

TestTarget

public abstract @interface TestTarget
implements Annotation

dalvik.annotation.TestTarget


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

String conceptName()

Specifies the name of a concept being tested.

Class[]<?> methodArgs()

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

String methodName()

Specifies the name of the method that is being tested.

Inherited methods

From interface java.lang.annotation.Annotation

Public methods

conceptName

String conceptName ()

Specifies the name of a concept being tested. Use this if methodName is not accurate enough. E.g. for compile(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, ...), ...

Returns
String

methodArgs

Class[]<?> methodArgs ()

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

Returns
Class[]<?>

methodName

String methodName ()

Specifies the name of the method that is being tested.

Returns
String

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)