openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jrba...@apache.org
Subject svn commit: r727841 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java
Date Thu, 18 Dec 2008 22:22:33 GMT
Author: jrbauer
Date: Thu Dec 18 14:22:33 2008
New Revision: 727841

URL: http://svn.apache.org/viewvc?rev=727841&view=rev
Log:
OPENJPA-823 Removed assertion from test due to variability in JREs

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java?rev=727841&r1=727840&r2=727841&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java
Thu Dec 18 14:22:33 2008
@@ -50,7 +50,9 @@
             emf.close();
             fail();
         } catch (Exception e) {
-            assert(!e.getMessage().contains("SAXException"));
+            // JREs fail differently for this test. Detection and 
+            // assertion of a JRE specific failure has shown to be error prone 
+            // so only a generic exception is detected.
         }        
     }
     



Mime
View raw message