details: https://code.openbravo.com/erp/devel/pi/rev/31353433f34e
changeset: 20407:31353433f34e
user: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date: Tue May 21 14:24:39 2013 +0530
summary: Related to Issue 23743 : Added test case
diffstat:
src-test/org/openbravo/test/dal/IssuesTest.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 28d3d4f719c6 -r 31353433f34e
src-test/org/openbravo/test/dal/IssuesTest.java
--- a/src-test/org/openbravo/test/dal/IssuesTest.java Tue May 21 13:28:36
2013 +0530
+++ b/src-test/org/openbravo/test/dal/IssuesTest.java Tue May 21 14:24:39
2013 +0530
@@ -839,6 +839,15 @@
assertTrue(copiedUom.getOrderLineList().isEmpty());
}
+ 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() +
"'";
+ final OBQuery<OrderLine> ols =
OBDal.getInstance().createQuery(OrderLine.class, whereClause);
+ ols.setMaxResult(1);
+ assertTrue(ols.list().size() >= 0);
+ }
+
private static class Test22235 extends DalBaseProcess {
private boolean errorOccured = true;
------------------------------------------------------------------------------
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