Revert "HHH-8127 OutOfMemoryError when running tests"

This reverts commit 11464ea097.
This commit is contained in:
Strong Liu 2013-04-25 15:11:45 +08:00
parent 377c300071
commit dfc8c4b10f
1 changed files with 1 additions and 18 deletions

View File

@ -100,23 +100,6 @@ public class CustomRunner extends BlockJUnit4ClassRunner {
return isAllTestsIgnored; return isAllTestsIgnored;
} }
@Override
public void run(RunNotifier notifier) {
super.run( notifier );
cleanup();
}
private void cleanup() {
if ( computedTestMethods != null && !computedTestMethods.isEmpty() ) {
computedTestMethods.clear();
computedTestMethods = null;
}
testInstance = null;
testClassMetadata = null;
}
@Override @Override
protected Statement withBeforeClasses(Statement statement) { protected Statement withBeforeClasses(Statement statement) {
if ( isAllTestsIgnored() ) { if ( isAllTestsIgnored() ) {