Package org.apache.openjpa.persistence

Examples of org.apache.openjpa.persistence.PersistenceException


            tx.commit();
            fail("RollbackException should have been thrown from the externalizer");
        }catch (RollbackException rollBackException) {
            Throwable[] throwables = rollBackException.getNestedThrowables();
            assertTrue(throwables[0] instanceof PersistenceException);
            PersistenceException persistentException = (PersistenceException) throwables[0];
            assertNotNull(persistentException);
            assertEquals(1, persistentException.getNestedThrowables().length);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.PersistenceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.