Added in API level 1
Deprecated in API level 14

TestTargetClass

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) class TestTargetClass
dalvik.annotation.TestTargetClass

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 constructors

Defines an annotation for test classes that allows to link them to the class that is being tested.

Properties
KClass<*>

Specifies the class being tested.

Public constructors

TestTargetClass

Added in API level 1
Deprecated in API level 14
TestTargetClass(value: KClass<*>)

Deprecated: 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.

Properties

value

Added in API level 1
val value: KClass<*>

Deprecated: Deprecated in Java.

Specifies the class being tested.