Build 1.0_r1(from source)

android.test
Class TestRecorder

java.lang.Object
  extended by android.test.TestRecorder
All Implemented Interfaces:
TestRunner.Listener, TestListener

public class TestRecorder
extends Object
implements TestRunner.Listener, TestListener

Not needed for 1.0 SDK.


Constructor Summary
TestRecorder()
           
 
Method Summary
 void addError(Test test, Throwable t)
          An error occurred.
 void addFailure(Test test, AssertionFailedError t)
          A failure occurred.
 void endTest(Test test)
          A test ended.
 void failed(String className, String reason)
          Reports a test case failure.
 void failed(String className, Throwable exception)
           
 void finished(String className)
           
 void passed(String className)
           
 void performance(String className, long itemTimeNS, int iterations, List<TestRunner.IntermediateTime> intermediates)
           
 void started(String className)
           
 void startTest(Test test)
          A test started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRecorder

public TestRecorder()
Method Detail

started

public void started(String className)
Specified by:
started in interface TestRunner.Listener

finished

public void finished(String className)
Specified by:
finished in interface TestRunner.Listener

performance

public void performance(String className,
                        long itemTimeNS,
                        int iterations,
                        List<TestRunner.IntermediateTime> intermediates)
Specified by:
performance in interface TestRunner.Listener

passed

public void passed(String className)
Specified by:
passed in interface TestRunner.Listener

failed

public void failed(String className,
                   Throwable exception)
Specified by:
failed in interface TestRunner.Listener

failed

public void failed(String className,
                   String reason)
Reports a test case failure.

Parameters:
className - Name of the class/test.
reason - Reason for failure.

addError

public void addError(Test test,
                     Throwable t)
Description copied from interface: TestListener
An error occurred.

Specified by:
addError in interface TestListener

addFailure

public void addFailure(Test test,
                       AssertionFailedError t)
Description copied from interface: TestListener
A failure occurred.

Specified by:
addFailure in interface TestListener

endTest

public void endTest(Test test)
Description copied from interface: TestListener
A test ended.

Specified by:
endTest in interface TestListener

startTest

public void startTest(Test test)
Description copied from interface: TestListener
A test started.

Specified by:
startTest in interface TestListener

Build 1.0_r1(from source)

Please submit a feedback, bug or feature