commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r570916 - /commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestConfigurationFactory.java
Date Wed, 29 Aug 2007 20:05:46 GMT
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);
         }
     }
 



Mime
View raw message