Apache Solr open-source search software
fix test bug
James Dyer330a570fc6dd
diff --git a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/AbstractSqlEntityProcessorTestCase.java b/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/AbstractSqlEntityProcessorTestCase.javaindex e1643653862..94543e32e18 100644--- a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/AbstractSqlEntityProcessorTestCase.java+++ b/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/AbstractSqlEntityProcessorTestCase.java@@ -72,8 +72,12 @@ public abstract class AbstractSqlEntityProcessorTestCase extendssportsTransformer = false;underlyingDataModified = false;- new File(fileLocation + File.separatorChar + fileName).delete();- new File(fileLocation).delete();+ //If an Assume was tripped while setting up the test,+ //the file might not ever have been created...+ if(fileLocation!=null) {+ new File(fileLocation + File.separatorChar + fileName).delete();+ new File(fileLocation).delete();+ }}protected void logPropertiesFile() {