public class UnitTestObserverImpl extends java.lang.Object implements UnitTestObserver
| Constructor and Description |
|---|
UnitTestObserverImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(junit.framework.Test test,
java.lang.Throwable t) |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t) |
void |
endTest(junit.framework.Test test) |
protected static java.lang.String |
getClassName(junit.framework.Test test)
Returns the name of the given test's class
|
long |
getCurrentTestCount() |
protected static java.lang.String |
getMethodName(junit.framework.Test test) |
long |
getTotalTestCount() |
void |
incCurrentTestCount() |
void |
recordFail(java.lang.String className,
java.lang.String methodName,
long tookMs) |
void |
recordPass(java.lang.String className,
java.lang.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 recordPass(java.lang.String className,
java.lang.String methodName,
long tookMs)
public void recordFail(java.lang.String className,
java.lang.String methodName,
long tookMs)
public void addError(junit.framework.Test test,
java.lang.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 java.lang.String getClassName(junit.framework.Test test)
protected static java.lang.String getMethodName(junit.framework.Test test)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.