Sdílet prostřednictvím


TestSuiteBuilder.Named(String) Method

Definition

Override the default name for the suite being built.

[Android.Runtime.Register("named", "(Ljava/lang/String;)Landroid/test/suitebuilder/TestSuiteBuilder;", "GetNamed_Ljava_lang_String_Handler")]
public virtual Android.Test.Suitebuilder.TestSuiteBuilder? Named (string? newSuiteName);
[<Android.Runtime.Register("named", "(Ljava/lang/String;)Landroid/test/suitebuilder/TestSuiteBuilder;", "GetNamed_Ljava_lang_String_Handler")>]
abstract member Named : string -> Android.Test.Suitebuilder.TestSuiteBuilder
override this.Named : string -> Android.Test.Suitebuilder.TestSuiteBuilder

Parameters

newSuiteName
String

Prefix of name to give the suite being built.

Returns

The builder for method chaining.

Attributes

Remarks

Override the default name for the suite being built. This should generally be called if you call addRequirements(com.android.internal.util.Predicate[]) to make it clear which tests will be included. The name you specify 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.named(java.lang.String).

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