public class UnitTestObserverImpl extends Object implements UnitTestObserver
| Constructor and Description |
|---|
UnitTestObserverImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(junit.framework.Test test,
Throwable t) |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t) |
void |
endTest(junit.framework.Test test) |
protected static String |
getClassName(junit.framework.Test test)
Returns the name of the given test's class
|
long |
getCurrentTestCount() |
protected static String |
getMethodName(junit.framework.Test test) |
long |
getTotalTestCount() |
void |
incCurrentTestCount() |
void |
recordFail(String className,
String methodName,
long tookMs) |
void |
recordPass(String className,
String methodName,
long tookMs) |
void |
startTest(junit.framework.Test test) |
void |
testTypeDetected(TestType t) |
void |
totalTestCountDetected(int count) |
public void incCurrentTestCount()
incCurrentTestCount in interface UnitTestObserverpublic void testTypeDetected(TestType t)
testTypeDetected in interface UnitTestObserverpublic void totalTestCountDetected(int count)
totalTestCountDetected in interface UnitTestObserverpublic long getCurrentTestCount()
public long getTotalTestCount()
public void startTest(junit.framework.Test test)
startTest in interface junit.framework.TestListenerpublic void endTest(junit.framework.Test test)
endTest in interface junit.framework.TestListenerpublic void addError(junit.framework.Test test,
Throwable t)
addError in interface junit.framework.TestListenerpublic void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
addFailure in interface junit.framework.TestListenerprotected static String getClassName(junit.framework.Test test)
protected static String getMethodName(junit.framework.Test test)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.