Package org.apache.cayenne.reflect

Examples of org.apache.cayenne.reflect.LifecycleCallbackRegistry.clear()


            assertFalse(flag[0]);
            clientContext.commitChanges();
            assertTrue(flag[0]);
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testPostAddOnObjectCallback() throws Exception {
View Full Code Here


            assertNotNull(peer);
            assertTrue(peer.isPrePersisted());
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testPreRemoveCallback() throws Exception {
View Full Code Here

            clientContext.deleteObject(object);
            clientContext.commitChanges();
            assertTrue(flag[0]);
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testCAY830() throws Exception {
View Full Code Here

            clientContext.deleteObject(o2);
            clientContext.commitChanges();
            // per CAY-830 an exception is thrown here
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testRollbackChanges() throws Exception {
View Full Code Here

            assertFalse(flag[0]);
            clientContext.commitChanges();
            assertTrue(flag[0]);
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testPostAddOnObjectCallback() throws Exception {
View Full Code Here

        }.runTest(1000);


        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testPreRemoveCallback() throws Exception {
View Full Code Here

            clientContext.deleteObjects(object);
            clientContext.commitChanges();
            assertTrue(flag[0]);
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testCAY830() throws Exception {
View Full Code Here

            clientContext.deleteObjects(o2);
            clientContext.commitChanges();
            // per CAY-830 an exception is thrown here
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testRollbackChanges() throws Exception {
View Full Code Here

            assertFalse(flag[0]);
            clientContext.commitChanges();
            assertTrue(flag[0]);
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testPostAddOnObjectCallback() throws Exception {
View Full Code Here

            assertNotNull(peer);
            assertTrue(peer.isPrePersisted());
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testPreRemoveCallback() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.