details:   /erp/devel/pi/rev/70879af4f638
changeset: 11792:70879af4f638
user:      Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
date:      Thu Apr 28 14:21:05 2011 +0200
summary:   Adapted JUnit tests due to cleanup project

diffstat:

 src-test/org/openbravo/test/dal/DalQueryTest.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r a2f40b181582 -r 70879af4f638 
src-test/org/openbravo/test/dal/DalQueryTest.java
--- a/src-test/org/openbravo/test/dal/DalQueryTest.java Thu Apr 28 13:00:23 
2011 +0200
+++ b/src-test/org/openbravo/test/dal/DalQueryTest.java Thu Apr 28 14:21:05 
2011 +0200
@@ -59,7 +59,7 @@
    */
   public void testDalFirstWhereLeftJoinClause() {
     setTestAdminContext();
-    final String where = "as mo left join mo.callout left join mo.reference 
left join mo.specialForm left join mo.process left join mo.workflow left join 
mo.tab where mo.callout.module.id='0' or mo.reference.module.id='0' or 
mo.specialForm.module.id='0' or mo.process.module.id='0' or 
mo.workflow.module.id='0' or mo.tab.module.id='0'";
+    final String where = "as mo left join mo.callout left join mo.reference 
left join mo.specialForm left join mo.process left join mo.tab where 
mo.callout.module.id='0' or mo.reference.module.id='0' or 
mo.specialForm.module.id='0' or mo.process.module.id='0' or 
mo.tab.module.id='0'";
     final OBQuery<ModelImplementation> obq = OBDal.getInstance().createQuery(
         ModelImplementation.class, where);
     assertTrue(obq.list().size() > 0);
@@ -82,7 +82,7 @@
         + ModelImplementation.PROPERTY_PROCESS
         + " left join mo."
         + ModelImplementation.PROPERTY_TAB
-        + " where mo.callout.module.id='0' or mo.reference.module.id='0' or 
mo.specialForm.module.id='0' or mo.process.module.id='0' or 
mo.workflow.module.id='0' or mo.tab.module.id='0'";
+        + " where mo.callout.module.id='0' or mo.reference.module.id='0' or 
mo.specialForm.module.id='0' or mo.process.module.id='0' or 
mo.tab.module.id='0'";
     final OBQuery<ModelImplementationMapping> obq = 
OBDal.getInstance().createQuery(
         ModelImplementationMapping.class, where);
     assertTrue(obq.list().size() > 0);

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to