You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2007/08/29 22:05:46 UTC

svn commit: r570916 - /commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestConfigurationFactory.java

Author: oheger
Date: Wed Aug 29 13:05:46 2007
New Revision: 570916

URL: http://svn.apache.org/viewvc?rev=570916&view=rev
Log:
Fix a test failure when fork mode is specified for surefire plugin

Modified:
    commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestConfigurationFactory.java

Modified: commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestConfigurationFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestConfigurationFactory.java?rev=570916&r1=570915&r2=570916&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestConfigurationFactory.java (original)
+++ commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestConfigurationFactory.java Wed Aug 29 13:05:46 2007
@@ -24,7 +24,7 @@
 
 import junit.framework.TestCase;
 
-import org.xml.sax.SAXParseException;
+import org.xml.sax.SAXException;
 
 /**
  * Test the ConfigurationFactory.
@@ -196,7 +196,8 @@
         }
         catch (ConfigurationException cle)
         {
-            assertTrue(cle.getCause() instanceof SAXParseException);
+            assertTrue("Unexpected cause: " + cle.getCause(),
+                    cle.getCause() instanceof SAXException);
         }
     }