to top
Android APIs
public class

InstrumentationTestSuite

extends TestSuite
java.lang.Object
   ↳ junit.framework.TestSuite
     ↳ android.test.InstrumentationTestSuite

Class Overview

A TestSuite that injects Instrumentation into InstrumentationTestCase before running them.

Summary

Public Constructors

? Examples
InstrumentationTestSuite( Instrumentation instr)

? Examples
InstrumentationTestSuite( String name, Instrumentation instr)

? Examples
InstrumentationTestSuite( Class theClass, Instrumentation instr)
Public Methods

? Examples
void addTestSuite( Class testClass)
Adds the tests from the given class to the suite

? Examples
void runTest( Test test, TestResult result)
[Expand]
Inherited Methods
From class junit.framework.TestSuite
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public InstrumentationTestSuite (Instrumentation instr)

Added in API level 1

Parameters
instr The instrumentation that will be injected into each test before running it.

public InstrumentationTestSuite (String name, Instrumentation instr)

Added in API level 1

public InstrumentationTestSuite (Class theClass, Instrumentation instr)

Added in API level 1

Parameters
theClass Inspected for methods starting with 'test'
instr The instrumentation to inject into each test before running.

Public Methods

public void addTestSuite (Class testClass)

Added in API level 1

Adds the tests from the given class to the suite

public void runTest (Test test, TestResult result)

Added in API level 1

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.