details:   /erp/devel/pi/rev/dec4c41f6f8e
changeset: 8209:dec4c41f6f8e
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Tue Aug 24 14:02:32 2010 +0200
summary:   Related to issue 14276: Need feature to disable maintaining audit 
info via dal for one request/dal-session

diffstat:

 src-test/org/openbravo/test/dal/IssuesTest.java |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r b198567d2ec6 -r dec4c41f6f8e 
src-test/org/openbravo/test/dal/IssuesTest.java
--- a/src-test/org/openbravo/test/dal/IssuesTest.java   Tue Aug 24 13:46:33 
2010 +0200
+++ b/src-test/org/openbravo/test/dal/IssuesTest.java   Tue Aug 24 14:02:32 
2010 +0200
@@ -498,6 +498,15 @@
       final Date oldUpdated = table.getUpdated();
       table.setName(table.getName() + "t");
       OBDal.getInstance().save(table);
+
+      // test if flush already works fine
+      OBDal.getInstance().flush();
+      OBDal.getInstance().getSession().clear();
+
+      table = OBDal.getInstance().get(Table.class, "100");
+      assertFalse(oldName.equals(table.getName()));
+      assertTrue(table.getUpdated().getTime() == oldUpdated.getTime());
+
       OBDal.getInstance().commitAndClose();
       table = OBDal.getInstance().get(Table.class, "100");
       assertFalse(oldName.equals(table.getName()));

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to