diff --git a/jpa/eclipselink.jpa.testapps.oracle/jpa.test.oracle.proxyauthentication/src/test/java/org/eclipse/persistence/testing/tests/jpa/proxyauthentication/ProxyAuthenticationServerTest.java b/jpa/eclipselink.jpa.testapps.oracle/jpa.test.oracle.proxyauthentication/src/test/java/org/eclipse/persistence/testing/tests/jpa/proxyauthentication/ProxyAuthenticationServerTest.java index 7cb0b1fd76e..c9263116856 100644 --- a/jpa/eclipselink.jpa.testapps.oracle/jpa.test.oracle.proxyauthentication/src/test/java/org/eclipse/persistence/testing/tests/jpa/proxyauthentication/ProxyAuthenticationServerTest.java +++ b/jpa/eclipselink.jpa.testapps.oracle/jpa.test.oracle.proxyauthentication/src/test/java/org/eclipse/persistence/testing/tests/jpa/proxyauthentication/ProxyAuthenticationServerTest.java @@ -301,7 +301,7 @@ public void testCreateWithOutProxy() throws Exception{ empId = employee.getId(); commitTransaction(em); } catch (Exception ex) { - if (!ex.getMessage().contains("ORA-00942: table or view does not exist")){ + if (!(ex.getMessage().contains("java.sql.SQLSyntaxErrorException") && ex.getMessage().contains("ORA-00942"))) { ex.printStackTrace(); fail("it's not the right exception"); } @@ -363,7 +363,7 @@ public void testFlushRollback() throws Exception{ em.persist(employee); em.flush(); } catch (Exception ex) { - if (!ex.getMessage().contains("ORA-00942: table or view does not exist")){ + if (!(ex.getMessage().contains("java.sql.SQLSyntaxErrorException") && ex.getMessage().contains("ORA-00942"))) { ex.printStackTrace(); fail("it's not the right exception"); }