Share via


TestSuiteBuilder Constructors

Definition

Overloads

TestSuiteBuilder(Class)

The given name is automatically prefixed with the package containing the tests to be run.

TestSuiteBuilder(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

TestSuiteBuilder(String, ClassLoader)

The given name is automatically prefixed with the package containing the tests to be run.

TestSuiteBuilder(Class)

The given name is automatically prefixed with the package containing the tests to be run.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Class;)V", "")]
public TestSuiteBuilder (Java.Lang.Class? clazz);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Class;)V", "")>]
new Android.Test.Suitebuilder.TestSuiteBuilder : Java.Lang.Class -> Android.Test.Suitebuilder.TestSuiteBuilder

Parameters

clazz
Class

Use the class from your .apk. Use the class name for the test suite name. Use the class' classloader in order to load classes for testing. This is needed when running in the emulator.

Attributes

Remarks

The given name is automatically prefixed with the package containing the tests to be run. If more than one package is specified, the first is used.

Java documentation for android.test.suitebuilder.TestSuiteBuilder.TestSuiteBuilder(java.lang.Class).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TestSuiteBuilder(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected TestSuiteBuilder (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Test.Suitebuilder.TestSuiteBuilder : nativeint * Android.Runtime.JniHandleOwnership -> Android.Test.Suitebuilder.TestSuiteBuilder

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TestSuiteBuilder(String, ClassLoader)

The given name is automatically prefixed with the package containing the tests to be run.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/ClassLoader;)V", "")]
public TestSuiteBuilder (string? name, Java.Lang.ClassLoader? classLoader);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/ClassLoader;)V", "")>]
new Android.Test.Suitebuilder.TestSuiteBuilder : string * Java.Lang.ClassLoader -> Android.Test.Suitebuilder.TestSuiteBuilder

Parameters

name
String
classLoader
ClassLoader
Attributes

Remarks

Java documentation for android.test.suitebuilder.TestSuiteBuilder.TestSuiteBuilder(java.lang.Class).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to