189190191192193194195196197198199
assertFalse(flag[0]); clientContext.commitChanges(); assertTrue(flag[0]); } finally { callbackRegistry.clear(); } } public void testPostAddOnObjectCallback() throws Exception {
218219220221222223224225226227228
assertNotNull(peer); assertTrue(peer.isPrePersisted()); } finally { callbackRegistry.clear(); } } public void testPreRemoveCallback() throws Exception {
271272273274275276277278279280281
clientContext.deleteObject(object); clientContext.commitChanges(); assertTrue(flag[0]); } finally { callbackRegistry.clear(); } } public void testCAY830() throws Exception {
324325326327328329330331332333334
clientContext.deleteObject(o2); clientContext.commitChanges(); // per CAY-830 an exception is thrown here } finally { callbackRegistry.clear(); } } public void testRollbackChanges() throws Exception {
192193194195196197198199200201202
229230231232233234235236237238239
}.runTest(1000); } finally { callbackRegistry.clear(); } } public void testPreRemoveCallback() throws Exception {
282283284285286287288289290291292
clientContext.deleteObjects(object); clientContext.commitChanges(); assertTrue(flag[0]); } finally { callbackRegistry.clear(); } } public void testCAY830() throws Exception {
335336337338339340341342343344345
clientContext.deleteObjects(o2); clientContext.commitChanges(); // per CAY-830 an exception is thrown here } finally { callbackRegistry.clear(); } } public void testRollbackChanges() throws Exception {
161162163164165166167168169170171
190191192193194195196197198199200