Build 1.0_r1(from source)

android.test
Class AndroidTestRunner

java.lang.Object
  extended by junit.runner.BaseTestRunner
      extended by android.test.AndroidTestRunner
All Implemented Interfaces:
TestListener

public class AndroidTestRunner
extends BaseTestRunner


Field Summary
 
Fields inherited from class junit.runner.BaseTestRunner
SUITE_METHODNAME
 
Constructor Summary
AndroidTestRunner()
           
 
Method Summary
 void addTestListener(TestListener testListener)
           
 void clearTestListeners()
           
protected  TestResult createTestResult()
           
 List<TestCase> getTestCases()
           
 String getTestClassName()
           
 TestResult getTestResult()
           
protected  Class loadSuiteClass(String suiteClassName)
          Returns the loaded Class for a suite name.
protected  void runFailed(String message)
          Override to define how to handle a failed loading of a test suite.
 void runTest()
           
 void runTest(TestResult testResult)
           
 void setContext(Context context)
           
 void setInstrumentaiton(Instrumentation instrumentation)
           
 void setTest(Test test)
           
 void setTestClassName(String testClassName, String testMethodName)
           
 void testEnded(String testName)
           
 void testFailed(int status, Test test, Throwable t)
           
 void testStarted(String testName)
           
 
Methods inherited from class junit.runner.BaseTestRunner
addError, addFailure, clearStatus, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, getLoader, getPreference, getPreference, getPreferences, getTest, inVAJava, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, startTest, truncate, useReloadingTestSuiteLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidTestRunner

public AndroidTestRunner()
Method Detail

setTestClassName

public void setTestClassName(String testClassName,
                             String testMethodName)

setTest

public void setTest(Test test)

clearTestListeners

public void clearTestListeners()

addTestListener

public void addTestListener(TestListener testListener)

createTestResult

protected TestResult createTestResult()

getTestCases

public List<TestCase> getTestCases()

getTestClassName

public String getTestClassName()

getTestResult

public TestResult getTestResult()

runTest

public void runTest()

runTest

public void runTest(TestResult testResult)

setContext

public void setContext(Context context)

setInstrumentaiton

public void setInstrumentaiton(Instrumentation instrumentation)

loadSuiteClass

protected Class loadSuiteClass(String suiteClassName)
                        throws ClassNotFoundException
Description copied from class: BaseTestRunner
Returns the loaded Class for a suite name.

Overrides:
loadSuiteClass in class BaseTestRunner
Throws:
ClassNotFoundException

testStarted

public void testStarted(String testName)
Specified by:
testStarted in class BaseTestRunner

testEnded

public void testEnded(String testName)
Specified by:
testEnded in class BaseTestRunner

testFailed

public void testFailed(int status,
                       Test test,
                       Throwable t)
Specified by:
testFailed in class BaseTestRunner

runFailed

protected void runFailed(String message)
Description copied from class: BaseTestRunner
Override to define how to handle a failed loading of a test suite.

Specified by:
runFailed in class BaseTestRunner

Build 1.0_r1(from source)

Please submit a feedback, bug or feature