|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.test.TestPrinter
public class TestPrinter
Prints the test progress to stdout. Android includes a default
implementation and calls these methods to print out test progress; you
probably will not need to create or extend this class or call its methods manually.
See the full android.test package description for information about
getting test results.
Not needed for 1.0 SDK.
| Constructor Summary | |
|---|---|
TestPrinter(String tag,
boolean onlyFailures)
|
|
| 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,
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 |
|---|
public TestPrinter(String tag,
boolean onlyFailures)
| Method Detail |
|---|
public void started(String className)
started in interface TestRunner.Listenerpublic void finished(String className)
finished in interface TestRunner.Listener
public void performance(String className,
long itemTimeNS,
int iterations,
List<TestRunner.IntermediateTime> intermediates)
performance in interface TestRunner.Listenerpublic void passed(String className)
passed in interface TestRunner.Listener
public void failed(String className,
Throwable exception)
failed in interface TestRunner.Listener
public void addError(Test test,
Throwable t)
TestListener
addError in interface TestListener
public void addFailure(Test test,
AssertionFailedError t)
TestListener
addFailure in interface TestListenerpublic void endTest(Test test)
TestListener
endTest in interface TestListenerpublic void startTest(Test test)
TestListener
startTest in interface TestListener
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||