IT. Expert System.

Android Reference

TestSuiteBuilder


android.test.suitebuilder

Class TestSuiteBuilder

    • Constructor Detail

      • TestSuiteBuilder

        public TestSuiteBuilder(Class clazz)
        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.
        Parameters:
        clazz - 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.
    • Method Detail

      • includePackages

        public TestSuiteBuilder includePackages(String... packageNames)
        Include all tests that satisfy the requirements in the given packages and all sub-packages, unless otherwise specified.
        Parameters:
        packageNames - Names of packages to add.
        Returns:
        The builder for method chaining.
      • excludePackages

        public TestSuiteBuilder excludePackages(String... packageNames)
        Exclude all tests in the given packages and all sub-packages, unless otherwise specified.
        Parameters:
        packageNames - Names of packages to remove.
        Returns:
        The builder for method chaining.
      • addRequirements

        public TestSuiteBuilder addRequirements(List<com.android.internal.util.Predicate<TestMethod>> predicates)
        Exclude tests that fail to satisfy all of the given predicates.
        Parameters:
        predicates - Predicates to add to the list of requirements.
        Returns:
        The builder for method chaining.
      • includeAllPackagesUnderHere

        public final TestSuiteBuilder includeAllPackagesUnderHere()
        Include all junit tests that satisfy the requirements in the calling class' package and all sub-packages.
        Returns:
        The builder for method chaining.
      • named

        public TestSuiteBuilder named(String newSuiteName)
        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.
        Parameters:
        newSuiteName - Prefix of name to give the suite being built.
        Returns:
        The builder for method chaining.
      • build

        public final TestSuite build()
        Call this method once you've configured your builder as desired.
        Returns:
        The suite containing the requested tests.
      • getSuiteName

        protected String getSuiteName()
        Subclasses use this method to determine the name of the suite.
        Returns:
        The package and suite name combined.
      • addRequirements

        public final TestSuiteBuilder addRequirements(com.android.internal.util.Predicate<TestMethod>... predicates)
        Exclude tests that fail to satisfy all of the given predicates. If you call this method, you probably also want to call named(String) to override the default suite name.
        Parameters:
        predicates - Predicates to add to the list of requirements.
        Returns:
        The builder for method chaining.
      • getTestGrouping

        protected TestGrouping getTestGrouping()
        Returns:
        the test package that represents the packages that were included for our test suite. Not needed for 1.0 SDK.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 407 / 158871279. Delta: 0.05547 с