tika-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1305917 - /tika/trunk/tika-core/src/test/java/org/apache/tika/config/TikaConfigTest.java
Date Tue, 27 Mar 2012 17:31:02 GMT
Author: jukka
Date: Tue Mar 27 17:31:02 2012
New Revision: 1305917

URL: http://svn.apache.org/viewvc?rev=1305917&view=rev
Log:
TIKA-866: Invalid configuration file causes OutOfMemoryException

Clear up system properties after tests.

Modified:
    tika/trunk/tika-core/src/test/java/org/apache/tika/config/TikaConfigTest.java

Modified: tika/trunk/tika-core/src/test/java/org/apache/tika/config/TikaConfigTest.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-core/src/test/java/org/apache/tika/config/TikaConfigTest.java?rev=1305917&r1=1305916&r2=1305917&view=diff
==============================================================================
--- tika/trunk/tika-core/src/test/java/org/apache/tika/config/TikaConfigTest.java (original)
+++ tika/trunk/tika-core/src/test/java/org/apache/tika/config/TikaConfigTest.java Tue Mar
27 17:31:02 2012
@@ -39,6 +39,8 @@ public class TikaConfigTest extends Test
             new TikaConfig();
             fail("AutoDetectParser allowed in a <parser> element");
         } catch (TikaException expected) {
+        } finally {
+            System.clearProperty("tika.config");
         }
     }
 
@@ -56,6 +58,8 @@ public class TikaConfigTest extends Test
             new TikaConfig();
         } catch (TikaException e) {
             fail("Unexpected TikaException: " + e);
+        } finally {
+            System.clearProperty("tika.config");
         }
     }
 
@@ -72,6 +76,8 @@ public class TikaConfigTest extends Test
             new TikaConfig();
         } catch (TikaException e) {
             fail("Unexpected TikaException: " + e);
+        } finally {
+            System.clearProperty("tika.config");
         }
     }
 



Mime
View raw message