Package org.apache.cayenne.reflect

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


        }.assertWithTimeout(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

            assertEquals(ClientMtTable1.GLOBAL_ATTRIBUTE1_PROPERTY, diffs.get(0).property);
            assertNull(diffs.get(0).oldValue);
            assertEquals("XXX", diffs.get(0).newValue);
        }
        finally {
            callbackRegistry.clear();
        }
    }

    public void testReturnDiffClientArcChanges() {
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.