Sorry for the big commit, got a bit carried away.
Added override and deprecated annotations wherever they were missing Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml) A few other random generics and misc. cleanups git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -55,6 +55,7 @@ public class EntityXmlAssertTest extends OFBizTestCase {
|
||||
if (UtilValidate.isEmpty(this.action)) this.action = "assert";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countTestCases() {
|
||||
int testCaseCount = 0;
|
||||
try {
|
||||
@@ -67,6 +68,7 @@ public class EntityXmlAssertTest extends OFBizTestCase {
|
||||
return testCaseCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(TestResult result) {
|
||||
result.startTest(this);
|
||||
|
||||
|
||||
@@ -37,10 +37,12 @@ public class JythonTest extends OFBizTestCase {
|
||||
this.scriptLocation = mainElement.getAttribute("script-location");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countTestCases() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(TestResult result) {
|
||||
// TODO Auto-generated method stub
|
||||
result.startTest(this);
|
||||
|
||||
@@ -49,10 +49,12 @@ public class ServiceTest extends OFBizTestCase {
|
||||
this.serviceName = mainElement.getAttribute("service-name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countTestCases() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(TestResult result) {
|
||||
result.startTest(this);
|
||||
|
||||
|
||||
@@ -52,10 +52,12 @@ public class SimpleMethodTest extends OFBizTestCase {
|
||||
this.methodName = mainElement.getAttribute("name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countTestCases() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(TestResult result) {
|
||||
result.startTest(this);
|
||||
|
||||
|
||||
@@ -190,11 +190,13 @@ public class TestRunContainer implements Container {
|
||||
this.setOutput(out);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startTestSuite(JUnitTest suite) {
|
||||
startTimes.put(suite.getName(), System.currentTimeMillis());
|
||||
super.startTestSuite(suite);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void endTestSuite(JUnitTest suite) throws BuildException {
|
||||
long startTime = startTimes.get(suite.getName());
|
||||
suite.setRunTime((System.currentTimeMillis() - startTime));
|
||||
|
||||
Reference in New Issue
Block a user