details:   https://code.openbravo.com/erp/devel/pi/rev/5ed408aa7e3b
changeset: 20413:5ed408aa7e3b
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Tue May 21 15:51:02 2013 +0200
summary:   Related to 23743. Fixed test case

diffstat:

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

diffs (12 lines):

diff -r 3efd192fdaae -r 5ed408aa7e3b 
src-test/org/openbravo/test/dal/IssuesTest.java
--- a/src-test/org/openbravo/test/dal/IssuesTest.java   Tue May 21 17:58:31 
2013 +0530
+++ b/src-test/org/openbravo/test/dal/IssuesTest.java   Tue May 21 15:51:02 
2013 +0200
@@ -842,7 +842,7 @@
   public void test23743() throws Exception {
     // create a OBQuery where clause with WHERE keyword and see query does not 
return exception when
     // fetching results or getting count
-    String whereClause = " AS orderline WHERE orderDate <='" + new Date() + 
"'";
+    String whereClause = " AS orderline WHERE orderDate <=now()";
     final OBQuery<OrderLine> ols = 
OBDal.getInstance().createQuery(OrderLine.class, whereClause);
     ols.setMaxResult(1);
     assertTrue(ols.list().size() >= 0);

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to