From 0e6a3bd79db8745bcdc947723bb091354b206663 Mon Sep 17 00:00:00 2001 From: Jeremy Bauer Date: Thu, 18 Dec 2008 22:22:33 +0000 Subject: [PATCH] OPENJPA-823 Removed assertion from test due to variability in JREs git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727841 13f79535-47bb-0310-9956-ffa450edef68 --- .../openjpa/persistence/xml/TestSchemaVersionValidation.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java index c15779a63..c7bcc7b53 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/xml/TestSchemaVersionValidation.java @@ -50,7 +50,9 @@ public class TestSchemaVersionValidation extends TestCase { 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. } }